URL component encoder & decoder
Compare path-segment and form-value rules side by side. Keep a literal plus sign distinct from a space and inspect exactly one encoding or decoding step.
Transform one component value
Calculations run in this page. This tool does not save input, send it to a conversion service or put it in the URL. Controls are masked from optional session recording; other page scripts and browser extensions remain outside these guarantees. Use non-sensitive examples.
Encoded values
9 UTF-16 code units · 9 UTF-8 bytes in the input
JSON-escaped representation (quotes mark the string):
"C%2B%2B%20%26%20tea"JSON-escaped representation (quotes mark the string):
"C%2B%2B+%26+tea"The path profile leaves A–Z, a–z, 0–9, - . _ ~ unescaped. The form profile leaves A–Z, a–z, 0–9, * - . _ unescaped and represents spaces as +. Decode treats literal + as a space only in the form profile.
Copy the transformation report
Which profile should I choose?
Use the path profile for one opaque value that will occupy a path segment. It escapes slash, question mark and hash as data. Use the form profile for one name or value in an application/x-www-form-urlencoded query or body. It is the browser form profile: unlike Python’s default quote_plus, it escapes tilde and leaves asterisk unescaped. Follow the receiving API’s contract when its rules differ.
This is one value, not an entire URL
Do not encode a complete URL or an assembled query string as if it were one field unless it is deliberately being embedded as a value. This tool does not split repeated query parameters or join name/value pairs. Pass raw values to the serializer that owns the request.
Why are the decoded results different?
For C%2B%2B+notes, path decoding yields C+++notes; form decoding yields C++ notes. Percent escapes encode the original plus signs, while the remaining literal plus becomes a space only under form rules. Both transformations decode exactly once.
Strict failures and double encoding
Decode rejects malformed escapes such as %ZZ and invalid UTF-8 such as %FF instead of silently repairing them. This is a deliberately strict diagnostic policy; browser form parsers can be more forgiving. Decoding %252F once produces the literal text %2F, not slash. The tool never repeatedly decodes until the text stops changing.
Limits of encoding
Encoding is reversible representation, not encryption, access control or URL validation. Unicode normalization is not applied. Complete dot segments such as .. remain unchanged; an encoded slash may be rejected or reinterpreted by a server or proxy. Test the actual route separately. Controls and blank strings can be hard to see, so compare the JSON-escaped representations and report.
Read the Python path and query guide with its runnable lab →
Inspect Unicode normalization separately →