URL encode and decode
Type text to encode it, or paste %XX codes to decode them. The direction follows what you paste; the gray text is an example.
Example: text → encoded
Encoded
caf%C3%A9%20au%20lait%20%26%20croissants
Options
Good to know
- Which way
- Text with %XX codes (such as
%20) and no plain spaces is decoded; anything else is encoded, including100% sure. If the guess is wrong, use Decode instead or Encode instead. - A value or a whole URL
- By default the text is encoded as one value, for a query parameter or a path segment:
&,=,/and?are encoded too, exactly as JavaScript'sencodeURIComponentdoes. To fix a whole URL with spaces or accents in it, choose “keep a URL's structure” under Options; %XX codes already in it are left alone. - UTF-8
- Every character is encoded as its UTF-8 bytes:
éis%C3%A9,🙂is%F0%9F%99%82. When decoding, codes that are not UTF-8 (often text saved as Latin-1, whereéis%E9) are pointed out instead of turning into garbage. - Plus signs
- In query strings and form data a
+means a space, so it is decoded as one; a real plus is written%2B. In a path, + is just a plus: turn the option off. - Encoded twice
- If the decoded text still has %XX codes (
%2520decodes to%20), it was probably encoded twice; decode the result again. - Open from a link
?input=…(itself URL-encoded) opens the page with that text, encoded or decoded as above.