CalcBrew

URL Encoder & Decoder

Turn text into a safe URL query value or decode a percent-encoded string back into plain text. Choose between encoding a single value (encodeURIComponent) and a full URL (encodeURI), and switch spaces between %20 and + for form data.

Encoded output

Share:

Which characters get encoded

CharacterEncodedComponentFull URL
space%20
&%26
=%3D
?%3F
/%2F
#%23
+%2B
%%25
"%22
é%C3%A9
A–Z a–z 0–9 - _ . ~unchanged

The unreserved set A–Z a–z 0–9 - _ . ~ never needs encoding. Reserved characters (: / ? # [ ] @ ! $ & ' ( ) * + , ; =) are legal in a URL when they play their structural role, which is why a full-URL encode leaves them alone while a component encode escapes them. Decoding is the inverse and is safe to run on either form.

Frequently asked questions

Related tools

More in Developer Tools · All tools & games