URL Encode / Decode
Percent-encode text for safe use in URLs, or decode an encoded URL back to readable text.
How to use the URL Encode / Decode
- 1 Paste the text or URL you want to convert.
- 2 Choose Encode or Decode — the result updates instantly.
- 3 Copy the output with one click.
About the URL Encode / Decode
URLs can only contain a limited set of characters. Spaces, ampersands, question marks and non-English characters must be percent-encoded (for example, a space becomes %20) so they travel safely in query strings and links. URL decoding reverses this to show the human-readable original.
This tool uses the browser’s native encoding functions, so results match exactly what browsers and servers produce. Nothing is transmitted — your data stays on your device.
Frequently asked questions
What is the difference between encodeURI and encodeURIComponent?
This tool encodes components — it escapes characters like &, ? and = so the text is safe inside a single query parameter.
Why does a space become %20 or +?
In URL paths a space is %20; in form-encoded query strings it is sometimes +. This tool uses %20 for correctness.