How to use the url encode and decode
- Choose the direction with the buttons above the result.
- Type or paste your text in the top box.
- Copy the converted result.
What is URL encoding?
A web address may only contain a limited set of characters. Anything else, including spaces, accented letters and symbols with a special meaning such as &, ?, = and #, must be written as a percent sign followed by two hexadecimal digits. A space becomes %20, an ampersand %26, and é becomes %C3%A9. This is called percent-encoding or URL encoding.
Common codes
| Character | Encoded | Character | Encoded | |
|---|---|---|---|---|
| space | %20 | & | %26 | |
! | %21 | / | %2F | |
# | %23 | : | %3A | |
$ | %24 | = | %3D | |
% | %25 | ? | %3F | |
+ | %2B | @ | %40 |
Encode everything, or just the unsafe parts?
With the option ticked, every special character is encoded. Use this for a single value you are putting into a URL, such as a search term or a redirect address, so that its & and = do not get confused with the URL's own. Untick it to encode a whole URL: the structure (:, /, ?, &) is kept and only spaces and unusual characters are converted.
When decoding, + is treated as a space, which is how web forms encode it.