Skip to content
ToolPaxaAll Tools for Everyone, in One Place.All calculators

URL Encode / Decode

Percent-encode or decode UTF-8 text as a URL component, whole URI or form value.

Formula reference

byte → %HH

Your result

Choose the mode and enter the text you want to convert.

The text is processed in your browser.

How URL percent encoding works

Choose which part you are encoding

Percent encoding represents a byte as % followed by two hexadecimal digits. Component mode treats the input as one value and protects reserved punctuation. Whole URI mode preserves structural delimiters. Form mode uses + for spaces and %2B for a literal plus.

Worked example

The component café & tea encodes to caf%C3%A9%20%26%20tea. In form mode, the same value becomes caf%C3%A9+%26+tea.

Decoding and validation

Decoding checks percent escapes and UTF-8. Whole URI decoding preserves escapes for reserved delimiters so that %2F stays part of its component. The tool accepts up to 256 KiB of UTF-8 input. It transforms strings and does not test whether a URL exists.

IETF RFC 3986 · WHATWG URL Standard

For Base64url and binary data, use the Base64 tool.

Common questions

When is a space %20 or +?

Use %20 in a URI or component. Form mode uses + for a space and encodes a literal plus as %2B.

What happens if I encode text containing percent escapes?

The percent sign itself becomes %25. For example, encoding %20 as a component gives %2520. Use the Decode operation to interpret existing escapes.

Does decoding convert an encoded slash into a path separator?

Component mode turns %2F into /. Whole URI mode preserves %2F so it does not change where the path is split.