URL Encode and Decode
Encode text for use in a web address, or decode a percent-encoded URL.
How to use the URL Encoder and Decoder
- Choose Encode or Decode. Encode makes text safe for a web address. Decode reverses it.
- Choose the mode. Use Part of a URL for a value inside a query. Use Whole URL to keep the :, / and ? characters.
- Copy the result. The answer appears on the right.
- Copy or download. Use the Copy button, or Download to save the result as a file.
About this tool
Web addresses can contain only certain characters. Spaces, &, ? and non-English letters are written as a percent sign and two digits, such as %20 for a space.
Use Part of a URL when you encode a single value, such as a search term. Use Whole URL when you encode a full address and want to keep its structure.
When to use the URL Encoder and Decoder
- Make text safe to use in a web address.
- Read a link with %20 and other codes.
- Fix a broken link with special characters.
Tips for the best result
- Encode only the part that needs it, such as a query value.
- Spaces become %20.
- Decode to read a long link.
Frequently asked questions
What does %20 mean?
It is a space. Every special character has a percent code.
Which mode should I pick?
Part of a URL (encodeURIComponent) for single values. Whole URL (encodeURI) for a full link.
What is URL encoding?
It replaces special characters in a web address with a percent sign and two digits, such as %20 for a space.
Why do links have %20?
It is how a space is written in a URL.
Is there a limit on how much text I can paste?
There is no fixed limit. Very large texts depend on your device’s memory and can be slower on older phones.
Is my text sent anywhere?
No. Everything runs in your browser. What you type or paste never leaves your device.