How to use the URL encoder and decoder
- Paste the text or encoded URL.
- Choose encode or decode.
- Copy the result.
What is URL encoding?
Web addresses can only contain certain characters. URL encoding, also called percent encoding, replaces anything else with a % sign and a code. A space becomes %20, an ampersand becomes %26 and £ becomes %C2%A3.
When you need it
Encode values before adding them to a query string, such as search terms or redirect addresses, so characters like &, ? and = are not mistaken for parts of the URL. Decode tracking links and logs to see what they actually contain.
Characters that get encoded
encodeURIComponent rules are used, which is the safe choice for query-string values. Letters, digits and - _ . ! ~ * ' ( ) are left alone. Everything else, including spaces, & = ? / # + and any non-English letters, is converted to UTF-8 bytes and written as %XX codes.
When decoding, a + is read as a space, because HTML forms send spaces that way. A broken sequence, such as a lone % or %G1, cannot be decoded and the tool tells you so instead of guessing.
Example: name=Zoë & Sam encodes to name%3DZo%C3%AB%20%26%20Sam.
Frequently asked questions
What does %20 mean in a URL?
%20 is an encoded space.
Should I encode a whole URL or just part of it?
Usually just the values you insert, such as a query parameter. Encoding the whole address also encodes the : and / characters.
Is my text uploaded?
No. Encoding and decoding happen in your browser.