Tools · Text · URL encode and decode
URL encode and decode
Percent-encode text for use in a URL, or decode a percent-encoded string back to readable text, live.
Add a file and run the tool.
Your file is ready.
Try a different file, or try again.
Settings
Adjust the settings below. The result updates as you go.
Runs fully in your browser. Nothing is uploaded.
Runs fully in your browser. Nothing is uploaded.
How it works
Type or paste your text, or paste an encoded string to decode it.
Choose Encode or Decode.
Copy the result.
Frequently asked questions
No. Everything happens in your browser.
This tool uses RFC 3986 component encoding, the modern standard for a single query value, so it writes a space as %20. The +-for-space convention comes from older HTML form submissions. To read text that uses it, such as a search URL or form data, tick "Read + as a space" when decoding.
It double-encodes the % character, turning %20 into %2520. Check your input first if the result looks longer than expected.
Yes, fully. Percent-encoding is Unicode-safe by definition, in both directions.
Guides
A closer look at specific problems this tool solves.
Why There Are Three Different 'Correct' Ways to URL-Encode a Space
A space in a URL can correctly become %20 or +, depending entirely on which of three real, standard encodings you are using. Mixing them up is the single most common source of confusion in this tool category.
Read the guideHow to URL Encode and Decode Text (And What encodeURIComponent Actually Escapes)
Paste text or an encoded string and get the converted result live. The exact character set that gets escaped, what stays untouched, and the one mistake that silently corrupts real input.
Read the guideHow to Pass a URL Inside Another URL Without Breaking It
A redirect link or OAuth callback often carries a full URL as a query value. The inner URL survives its own ? but not its own & or #. Encode the whole value as one component.
Read the guide
Comments