All tools

URL encoder

Percent-encode and decode a URL, with the difference between whole-URL and component escaping shown side by side, and a query string parser.

Runs entirely in your browser. Nothing you type or paste is sent anywhere.

Direction
encodeURI

For a whole URL. Leaves :/?#[]@ and the other characters that give a URL its structure alone.

encodeURIComponent

For one piece going inside a URL, such as a query value. Escapes the structural characters too, so they cannot be mistaken for structure.