URL Encoder / Decoder

Encode text for URLs with encodeURIComponent or encodeURI, and decode percent-encoded strings.

100% private — everything runs in your browser

How to Use

  1. 1

    Pick a mode: encode a component, encode a full URL, or decode.

  2. 2

    Type or paste your text — the result updates as you type.

  3. 3

    Copy the output with the copy button.

Examples

Encode a query value

Input

hello world & more

Output

hello%20world%20%26%20more

Decode a percent-encoded value

Input

caf%C3%A9%20menu

Output

café menu

FAQ

When should I use encodeURIComponent instead of encodeURI?

Use encodeURIComponent for a single parameter value or path segment. Use encodeURI for a complete URL where characters like : / ? & = must stay intact.

Why does decoding fail?

decodeURIComponent throws when a percent escape is incomplete or invalid, for example a lone "%" or "%E0%A4". The tool reports this instead of returning broken text.

Does the tool send my data anywhere?

No. Encoding and decoding happen entirely in your browser.

Related Tools