URL Encoder / Decoder

Pick a direction and a mode, then paste — the conversion runs as you type, in this page.

Component vs. full URI

Component mode (encodeURIComponent) escapes everything that isn't safe inside a single piece of a URL — including / : ? # & = — because those characters are delimiters in whatever URL you paste the result into. Use it for a query parameter value, a form field, or any standalone piece of text.

Full URI mode (encodeURI) assumes the input is already a complete URL, so it leaves those delimiter characters alone and only escapes things like spaces and other characters that are never valid anywhere in a URI.