Free · runs in your browser · no upload · no quota
URL Encode & Decode
Percent-encode text so it can go into a URL, or decode a URL full of %20 and %C3%A9 back to readable text. Choose a query value, a whole URL or form data, and encode or decode many lines at once.
Good to know
Query values follow RFC 3986 strictly.
Besides what JavaScript's encodeURIComponent encodes, the characters ! ' ( ) * are encoded too, so the result is safe in every part of a URL and in OAuth signatures.
Do not encode twice.
Encoding an already encoded text turns %20 into %2520. If you see %25 in a URL, it was encoded twice; decode it twice to get the text back.
Each line separately.
Without it, line breaks are part of the text and are encoded as %0A. With it, every line is encoded on its own and the lines stay as they are.
How to URL-Encode or Decode Text
- Paste the text or URL
Type or paste it into the left box. - Choose encode or decode, and the type
Query value encodes everything that has a meaning in a URL, for one parameter value. Whole URL keeps: / ? & =so the address still works. Form data writes spaces as+, as HTML forms send them. - Copy the result
The result updates as you type; copy it or download it. Tick Each line separately to handle a list of values.
Example
café & bar/menu?id=7
caf%C3%A9%20%26%20bar%2Fmenu%3Fid%3D7
Frequently Asked Questions
-
What is URL encoding?URLs may contain only a limited set of characters. Everything else, including spaces, accented letters and characters with a special meaning such as
&and?, is written as%followed by its byte value in hex: a space becomes%20, é becomes%C3%A9(its two UTF-8 bytes). -
Query value or whole URL: which one?Encode a query value when you put text inside a URL, such as a search term after
?q=; an&in it must become%26, or it would start a new parameter. Encode a whole URL to make an address with spaces or accents valid while keeping its structure. -
Why %20 in one place and + in another?Both mean a space.
+is used only in form data and query strings sent by HTML forms (application/x-www-form-urlencoded);%20works everywhere. When decoding, choose Form data to turn+into spaces. -
What if the text has invalid % sequences?They are left as they are instead of making the whole decode fail, and the status line says how many there were. That happens with URLs that were cut off or encoded in an old 8-bit character set instead of UTF-8.
-
Is my text sent to a server?No. Encoding and decoding run in your browser.