URL Encoder & Decoder

Choose whether you are encoding one URL value, a complete URI or a form value, then convert text with the appropriate separator and space rules.

Text stays in this page’s memory and is omitted from share links. Reloading clears it. Limit: 100,000 UTF-16 units.

0 UTF-16 units in the output.

Component mode encodes one path segment or query value. Complete URI mode preserves URL separators, including /, ?, & and =; its decoder also preserves escapes for reserved separators. Form mode encodes one value, with + for spaces.

Choose the scope before encoding

Component mode uses encodeURIComponent for one query value or path segment. It escapes separators such as /, ? and &, so they can be part of a value rather than changing the URL structure. Complete URI mode uses encodeURI and preserves reserved separators.

For example, a b+c becomes a%20b%2Bc in component mode. The same input becomes a+b%2Bc in form mode, where + represents a space. A literal plus sign is escaped in both examples.

Decoding percent escapes

Component mode decodes all valid percent escapes. Complete URI mode follows decodeURI semantics and leaves escaped reserved separators, such as %2F, intact. Form mode first interprets + as a space and then decodes percent escapes.

Malformed escapes and invalid UTF-8 sequences show an error. The tool decodes one layer at a time: %252F becomes %2F in component mode, and another decoding step turns it into /.

Working with text safely

Form mode encodes one value, not an entire key=value&key=value query string. Complete URI mode does not validate a destination or decide whether a link is safe to visit. The output is plain text; this tool does not navigate to it.

Text remains in the current page’s memory and is omitted from share links. Reloading clears it. The input limit is 100,000 UTF-16 units. Reverse conversion is disabled when the output is too long to fit back into the input.

References

Frequently asked questions

Why does a plus sign become a space?

That rule applies to form mode. Component and complete URI decoding keep literal plus signs.

Should I encode an entire URL as a component?

Use component mode when a whole URL is itself a value inside another URL. Use complete URI mode when its existing separators should remain meaningful.

Does this follow links I paste?

No. It transforms text locally and displays output without opening it.

Last updated . Results are estimates for informational purposes only.