URL Encoder and Decoder
Make text safe to put in a URL, or turn a percent-encoded URL back into readable text.
About the URL Encoder and Decoder
URLs may only contain a limited set of characters. Spaces, accented letters and symbols such as & or ? have to be written as percent codes, like %20 for a space. This tool applies that percent-encoding to your text, using UTF-8, or reverses it so an encoded link becomes readable again.
Developers building query strings, marketers assembling tracking links, and anyone trying to read a long encoded link from an email or log will find it useful.
When to use it
- You are adding a search term or a return address as a query parameter and it contains
&or=. - A link with non-English words needs to work in a system that only accepts plain ASCII.
- You want to read a redirect link full of
%2Fand%3Dcodes. - You are decoding form data where spaces were sent as
+.
Worked example
Encode café au lait & cake with A value inside a URL selected:
caf%C3%A9%20au%20lait%20%26%20cake
The é becomes two bytes, %C3%A9, and the & becomes %26, so it cannot be mistaken for the start of the next parameter.
Now encode the full address https://example.com/search?q=café au lait&page=2 with A complete URL selected:
https://example.com/search?q=caf%C3%A9%20au%20lait&page=2
Here :, /, ?, = and & are kept, so the link still points to the same place.
Good to know
- Encoding writes spaces as
%20, never as+. - The value option leaves letters, digits and
- _ . ! ~ * ' ( )unchanged and encodes everything else. The complete-URL option also keeps characters that give a URL its structure, such as: / ? # & = +. - When decoding,
+stays a plus sign unless you tick Treat + as a space. For example,caf%C3%A9+au+laitdecodes tocafé+au+laitby default and tocafé au laitwith the box ticked. - A lone
%or a broken UTF-8 sequence, such as100%, gives a clear error instead of garbled output. - To make a readable URL path from a title, see text to slug.
How to use URL Encoder and Decoder
- Choose Encode or Decode.
- For encoding, say whether it is a value inside a URL or a whole URL.
- Copy the result.
Privacy: how it works
Everything happens in your browser. Your text is not sent to any server.
Frequently asked questions
Which encoding option should I choose?
Use "a value inside a URL" for query parameters and path parts; it also encodes / ? & and =. Use "a complete URL" to keep the link structure working.
Why does + sometimes mean a space?
HTML forms encode spaces as +. Tick "Treat + as a space" when decoding form data.