Developer utility

URL Encode / Decode

Apply one of four browser-native URI transformations exactly as JavaScript defines it. Your text stays in this browser.

Encode or decode URI text

Uses encodeURIComponent(input) for one query parameter value or URI component; structural delimiters are encoded.

Uses decodeURIComponent(input) to decode a complete encoded URI component.

Uses encodeURI(input) for a full URI and preserves structure delimiters such as :, /, ?, #, &, and =.

Uses decodeURI(input) for a full URI; reserved delimiters intentionally remain encoded when decoding would change URI structure.

How to use this URL encoder and decoder

Choose the native URI operation that matches whether your text is a single component or a complete URI.

  1. Paste or type the exact text you want to transform. Whitespace-only input is treated as input and is not trimmed or changed.
  2. Use Encode URI Component or Decode URI Component for one URI component, such as a query parameter value. Component encoding encodes structural delimiters.
  3. Use Encode Full URI or Decode Full URI for a complete URI. Full URI encoding preserves delimiters such as :, /, ?, #, &, and =; copy the current result when ready.

Frequently asked questions

Which operation should I use for a query parameter value?
Use Encode URI Component for a single query parameter value or another URI component. It encodes structural delimiters so the value cannot be mistaken for URI structure.
How is a full URI different?
Encode Full URI uses encodeURI and leaves URI structure delimiters such as :, /, ?, #, &, and = unchanged. Decode Full URI uses decodeURI, which intentionally leaves encoded reserved delimiters encoded when decoding them could change the URI structure.
Why can decoding fail?
The native decode functions reject malformed percent escapes, incomplete escapes, and percent-encoded byte sequences that are not valid UTF-8. Your original input stays available so you can correct it.

Encode text in another representation or format structured data for the next step in your workflow.