About this URL encoder and decoder
Percent-encode text so it is safe to use in URLs, query strings and form posts, or decode an encoded URL back to readable text. URL encoding (also called percent-encoding) replaces characters that are not allowed in a URL with a % followed by their UTF-8 byte value in hex, so a space becomes %20, & becomes %26 and € becomes %E2%82%AC. Use it to debug redirect URLs, OAuth callback parameters, tracking links, API query strings and anything that arrived double-encoded.
How to use the URL Encode / Decode
- Paste plain text or an encoded URL.
- Click Encode to percent-encode it, or Decode to turn %XX sequences back into characters.
- Copy the result into your URL, code or HTTP client.
Example
name=José Müller&city=São Paulo → name%3DJos%C3%A9%20M%C3%BCller%26city%3DS%C3%A3o%20Paulo https%3A%2F%2Fexample.com%2Fsearch%3Fq%3Dhello%20world → https://example.com/search?q=hello world
Frequently asked questions
When do I need URL encoding?
Whenever a query string value or path segment contains spaces or reserved characters such as &, =, ?, #, /, + or % or any non-ASCII character. Leaving them unencoded truncates parameters or breaks the URL.
What is the URL encoding for a space: %20 or +?
%20 is the standard percent-encoding and is correct everywhere in a URL. The + sign only means space inside application/x-www-form-urlencoded data (HTML form posts and query strings built by forms). When in doubt use %20.
What are the most common URL-encoded characters?
Space %20, ! %21, " %22, # %23, $ %24, % %25, & %26, ' %27, ( %28, ) %29, + %2B, , %2C, / %2F, : %3A, ; %3B, = %3D, ? %3F, @ %40, [ %5B, ] %5D.
What is the difference between encodeURI and encodeURIComponent?
encodeURIComponent encodes everything except letters, digits and - _ . ! ~ * ' ( ), so it is right for individual query values. encodeURI leaves URL structure characters like :, /, ? and & alone, so it is for encoding a whole URL. This tool behaves like encodeURIComponent, which is what you want for parameter values.
How do I URL encode in C#, Python or JavaScript?
C#: Uri.EscapeDataString(value) or WebUtility.UrlEncode(value). Python: urllib.parse.quote(value, safe='') or urlencode(dict). JavaScript: encodeURIComponent(value). Decode with Uri.UnescapeDataString, urllib.parse.unquote and decodeURIComponent respectively.
Why is my URL double-encoded (%2520)?
%2520 is a percent sign (%25) followed by 20, which means a value that was already encoded was encoded again. Decode it twice here to recover the original, then fix the code so it encodes only once, at the point where the URL is assembled.
Does it handle UTF-8 and emoji?
Yes. Non-ASCII characters are encoded as their UTF-8 bytes, exactly as browsers do, so ü becomes %C3%BC and 😀 becomes %F0%9F%98%80, and they decode back correctly.
Is my data safe?
Yes. The tool runs entirely in your browser using WebAssembly. Nothing you type or upload is sent to a server, logged or stored.
Is it free?
Yes, completely free with no sign-up, no limits and no watermarks. It also works offline once the page has loaded.