Percent-encode and decode URLs and query strings online, and split any URL into its parts and query parameters. Free, instant and private.
URL parts
💡 Would you like a new tool or feature, or did something not work? Tell us at [email protected]
How to encode or decode a URL
Choose Encode or Decode.
Paste text or a URL. The result updates as you type.
When encoding, choose Component for a single value (like a search term going into ?q=) or Whole URL to keep the address's structure.
When the input is a full URL, its parts (host, path and every query parameter, decoded) are listed underneath.
Characters that get encoded
Character
Encoded
Character
Encoded
space
%20
&
%26
/
%2F
=
%3D
?
%3F
#
%23
+
%2B
%
%25
@
%40
é
%C3%A9
ñ
%C3%B1
€
%E2%82%AC
Frequently asked questions
What is URL encoding?
URL encoding (percent-encoding) replaces characters that aren't allowed in URLs with a % followed by two hex digits. A space becomes %20, & becomes %26 and é becomes %C3%A9. It keeps the meaning of a URL intact when it contains special characters.
What's the difference between encodeURIComponent and encodeURI?
encodeURIComponent encodes everything except letters, digits and - _ . ! ~ * ' ( ). Use it for a single value, like a query parameter. encodeURI leaves characters that structure a URL (: / ? # & =) alone, so use it for a whole address.
Why does + sometimes mean a space?
In HTML form submissions (application/x-www-form-urlencoded), spaces are written as +. That's why decoding treats + as a space by default. Untick the option if your + signs are real plus signs.
Is my URL sent anywhere?
No. Encoding, decoding and URL parsing happen in your browser. Nothing is logged or uploaded, so it's safe for links containing tokens.