What is the URL Encode / Decode?
URLs can only contain a limited set of characters. Spaces, accented letters, emojis and symbols like & ? # / must be โpercent-encodedโ โ written as % followed by hex codes. For example a space becomes %20 and โรฉโ becomes %C3%A9.
Use Encode to make text safe for a URL query parameter, and Decode to turn a messy link full of %XX codes back into readable text. Decoding also turns + into a space, as used in form submissions. Everything uses UTF-8 and runs in your browser.
How to use the URL Encode / Decode
- Choose Encode or Decode.
- Paste your text or URL.
- Copy the result, or press Swap to convert back.
Examples
name=Asha & city=New Delhi
name%3DAsha%20%26%20city%3DNew%20Delhi
hello%20world%21
hello world!
When to use it
- Building query strings and API requests
- Reading encoded links and UTM parameters
- Debugging redirects
- Sharing links with special characters
Frequently Asked Questions
What is URL encoding?
Replacing unsafe characters with % and two hex digits, e.g. space โ %20, so they can be used inside a URL.
Should I encode the whole URL?
Usually only the values of query parameters. Encoding the whole URL also encodes : and /, which breaks the link.
Why is a space sometimes + and sometimes %20?
+ is used in HTML form data; %20 is the standard URL encoding. This decoder understands both.