To url encode and decode text, you replace unsafe characters with a percent sign and two hex digits, or turn those codes back into readable text. The free URL Encode and Decode tool does both in your browser: paste your text, choose a mode, and the result appears as you type. This guide explains what percent-encoding is, what each option does, and where the limits are.
What is URL encoding?
A web address can only contain a limited set of characters. Letters, numbers and a few symbols are safe. Everything else, such as spaces, accents, Arabic letters, emoji and symbols like the ampersand and the question mark, has to be replaced before it can travel inside a link.
The replacement is a percent sign followed by two letters or numbers. A space becomes %20, and the letter e with an acute accent becomes %C3%A9. This is called URL encoding or percent encoding. Decoding is the reverse: the codes are turned back into the original characters.
Without encoding, a link can break. A space may cut the address in two, and a question mark or ampersand inside a search term can be mistaken for part of the link structure.
What does the URL Encode and Decode tool do?
The tool has two modes and a few simple controls:
- Encode turns normal text into a safe form for a web address.
- Decode turns a link full of percent signs back into readable text.
- Everything or Full URL lets you choose how much to encode.
- Use + for spaces switches the way spaces are written.
- Copy result, Swap input and result and Clear help you work faster.
The result updates as you type, so there is no convert button to press. Everything happens in your browser, and your text is not uploaded to our servers.
Which mode should I choose: Everything or Full URL?
This is the choice that matters most, so it is worth understanding.
Everything (a value or parameter)
This mode encodes every special character, including the slash, question mark, equals sign, ampersand and hash. Use it for a single value that will sit inside a link, such as a search term, a person’s name or a redirect address placed inside a parameter. If you encode a whole link in this mode, the colon and slashes are encoded too, which is correct when that link is only a value inside another link.
Full URL
This mode keeps the characters that give a link its structure, such as the colon, slash, question mark, equals sign, ampersand and hash. It only encodes the rest, such as spaces and accents. Use it when you paste a complete link that contains spaces or non-English letters and you want it to still look like a link afterwards.
A quick rule: encoding a piece that goes inside a link, choose Everything. Encoding a link that is already complete, choose Full URL.
What does the “Use + for spaces” option mean?
In the text of a web form, a space is often written as a plus sign instead of %20. Tick this option to encode spaces as a plus sign, or to read a plus sign as a space when you decode.
Leave it off for normal links. In a normal link path, a plus sign stands for a real plus sign, and turning it into a space would change the meaning. If you are copying data from a form submission or a search address that uses plus signs between words, tick the option when you decode it.
How do I use the tool step by step?
- Open the URL Encode and Decode tool.
- Choose Encode or Decode.
- Pick Everything or Full URL.
- Paste your text or link in the first box. The result appears in the second box right away.
- Press Copy result, or press Swap input and result to flip the direction and check that the text comes back exactly as you started.
The swap button is a handy safety check. If you encode something, swap, and the original text returns, you know the round trip worked.
When should I encode or decode a URL?
Here are common situations where people reach for this tool:
- Search terms and names in links. A phrase with spaces or an accent needs encoding before it goes into a query.
- Tracking links. Campaign names can contain spaces or symbols. If you build tagged links, the UTM Link Builder is made for that job, and this tool helps when you need to check or fix a single value.
- Redirect addresses. A link that sits inside another link, such as a return address, must be encoded as a value.
- Reading a messy link. A link full of %20 and %E2%80%99 is hard to read. Decode it to see what it really says.
- Non-English text. Arabic and other languages are encoded as UTF-8 and decoded back correctly.
For a step-by-step example of fixing one broken link, read our how-to on how to encode special characters in a URL.
What are the limits to know about?
- Do not encode a link twice. The percent signs from the first round would be encoded again, and the link would stop working.
- Invalid codes cannot be decoded. If your text has a percent sign that is not followed by a valid code, the tool shows an error.
- It works on text only. The tool does not check whether a link opens or whether the page exists.
- It is not encryption. Encoding makes text safe for a web address. It does not hide it, and anyone can decode it.
If you want a shorter link after fixing the characters, try the URL Shortener. For other kinds of encoded text, the Base64 Encode and Decode tool works in a similar way but uses a different method.
Tips for clean results
- Encode each value on its own, then place it in the link. This avoids mistakes with the characters that separate values.
- After encoding, paste the finished link in a browser and test it.
- Keep the original text. If something goes wrong you can start again.
- If you are working with data in curly brackets and quotes, the JSON Formatter can tidy it before you encode a value from it.
Frequently Asked Questions
What is the difference between encodeURI and encodeURIComponent?
encodeURI is meant for a whole link and keeps characters such as the slash and question mark. encodeURIComponent is meant for a single value and encodes them too. The two modes in this tool work the same way: Full URL for the first, Everything for the second.
Why does my link show %20?
%20 is the code for a space. Browsers show it in a link because a real space is not allowed in a web address.
How do I decode %E2%80%99 or other codes?
Choose Decode and paste the text. Codes like these are turned back into the original characters, in this case a curly apostrophe.
Is this tool free?
Yes. It is free to use, with no sign-up. Your text stays in your browser.
Does it work with Arabic?
Yes. Arabic letters and other languages are encoded as UTF-8 and decoded back correctly.
More free tools
Open the URL Encode and Decode tool whenever a link looks wrong. You may also like the Base64 Encode and Decode tool, the UTM Link Builder and the URL Shortener. You can browse everything on the free tools page.
