URL Parser & Analyzer
Break down any URL into protocol, domain, path, query params, and hash.
Open URL Parser & Analyzer
Percent-encode text for URLs and query strings, or decode %XX sequences back to readable text.
Form encoding (application/x-www-form-urlencoded) instead of %20.
This tool percent-encodes text so it can be placed safely in a URL, and decodes percent-encoded strings back into readable text. Switch direction with the Encode to URL and Decode URL tabs. It is useful for building query parameters by hand, reading encoded values from server logs and redirect URLs, and debugging why an API receives a different value than you sent.
Characters are converted to UTF-8 bytes and each byte is written as % plus two hex digits, so accented letters, non-Latin scripts and emoji all work. A Use + for spaces switch handles the HTML form style where spaces are written as +. Everything runs in your browser.
Encode to URL to percent-encode text, or Decode URL to turn %XX sequences back into characters.Plain text box (encode) or the URL input box (decode). The output updates automatically after a short pause.Use + for spaces if you are working with query strings or form bodies in application/x-www-form-urlencoded format. Leave it off to encode spaces as %20 and to keep + as a literal plus when decoding.URL output or Decoded text. Malformed input shows an error message in red in the output panel.Copy output, or use Swap input and output to move the result into the input and flip the mode.Every reserved character is encoded, including &, =, / and ?, so the value cannot break the surrounding query string. The é becomes its two UTF-8 bytes, %C3%A9.
café & croissants = 2/3 off?caf%C3%A9%20%26%20croissants%20%3D%202%2F3%20off%3FWith Use + for spaces turned on, spaces become + instead of %20, which matches how browsers encode HTML form submissions. Everything else is unchanged.
café & croissants = 2/3 off?caf%C3%A9+%26+croissants+%3D+2%2F3+off%3FIn Decode URL mode with Use + for spaces on, the + signs become spaces and %C3%A3 becomes ã. With the switch off, the output would be name=Jane+Doe&city=São+Paulo.
name=Jane+Doe&city=S%C3%A3o+Pauloname=Jane Doe&city=São PauloThe encoder uses JavaScript's encodeURIComponent. It leaves letters, digits and the characters - _ . ! ~ * ' ( ) alone and encodes everything else, including the URL delimiters :, /, ?, #, &, = and +. That makes the output safe to drop into a single query parameter value or a single path segment.
Because it encodes delimiters, the tool is not meant for a complete URL. Pasting https://example.com/search?q=a b&lang=en produces https%3A%2F%2Fexample.com%2Fsearch%3Fq%3Da%20b%26lang%3Den, which is only correct when the whole URL is itself a value, for example inside a redirect_uri or next parameter. To build a normal URL, encode each value separately and join them with literal ?, = and &.
RFC 3986 encodes a space as %20, and that form is valid anywhere in a URL. HTML forms use the older application/x-www-form-urlencoded format, where a space is written as +. Servers that parse query strings usually accept both, but path segments do not treat + as a space.
Use + for spaces off writes %20. With it on, %20 is replaced by +.%2B, so it is never confused with a space.+ into a space before decoding. With it off, + is kept as a plus sign.The decoder stops with Invalid percent-encoding. Check for a % that is not followed by two hex digits. when it finds a % that does not start a valid escape, such as in 100%, or a set of bytes that is not valid UTF-8, such as a lone %C3. A literal percent sign must be written as %25.
Double encoding is a frequent bug when values pass through several layers. Encoding %20 again produces %2520, and the server then receives the text %20 instead of a space. If an encoded value contains %25 followed by two hex digits, decode it once and look at the result: if it still contains %XX sequences, the value was encoded twice.
A few practical points when working with encoded URLs:
Clear input removes the saved text.More utilities that pair well with this one.
Break down any URL into protocol, domain, path, query params, and hash.
Open URL Parser & Analyzer
Generate trackable campaign URLs with UTM parameters and ready-to-copy output.
Open UTM Builder
Encode text to Base64 or decode Base64 back to text, with UTF-8 and URL-safe Base64URL support.
Open Base64 Encode / Decode
Convert titles and phrases into clean URL-friendly slugs.
Open Slug Generator
Common questions about this tool.
% followed by two hex digits for each of its UTF-8 bytes. A space becomes %20, & becomes %26 and é becomes %C3%A9. It keeps characters that have a special meaning in URLs from breaking the URL structure.Encode to URL or Decode URL tab. The result updates as you type. Swap input and output moves the result into the input box and flips the mode, which is handy for checking that a value survives a round trip.encodeURIComponent, so everything except letters, digits and - _ . ! ~ * ' ( ) is encoded. That includes /, ?, &, =, # and :, which is what you want for a single query parameter value or path segment.://, /, ? and &, so https://example.com/?q=1 becomes https%3A%2F%2Fexample.com%2F%3Fq%3D1. That is correct only when the whole URL is itself a parameter value, such as a redirect_uri. Otherwise encode each value separately.%20 is valid everywhere in a URL. + means a space only in query strings and form bodies that use application/x-www-form-urlencoded. Turn on Use + for spaces to encode spaces as +; leave it off to get %20.Use + for spaces is on. With it off, a + stays a literal plus sign, which is correct for paths and for values encoded with encodeURIComponent. Turn it on when decoding form submissions or query strings produced by HTML forms. An encoded plus, %2B, always decodes to +.Invalid percent-encoding. Check for a % that is not followed by two hex digits. when it finds a % that does not start a valid escape, such as 100%, or a byte sequence that is not valid UTF-8, such as a lone %C3. Encode literal percent signs as %25.encodeURI is meant for a complete URL and leaves structural characters such as /, ?, & and # alone. encodeURIComponent encodes those too, so it is the right choice for individual values. This tool uses encodeURIComponent.%20 becomes %2520. The server then sees %20 as literal text instead of a space. If you see %25 followed by two hex digits, decode once and check whether the value was encoded twice.Clear input removes the saved text.