Skip to main content

Free tool by GoodAI Life

URL Encoder, Decoder and Parser

Percent-encode or decode text, break a full URL into its parts and tweak query parameters in an editable table. Nothing leaves your browser.

URL parser

encodeURIComponent vs encodeURI

encodeURIComponent escapes almost everything, including / ? & = and #, so it is the right choice for a single query value or path segment.

encodeURI keeps those reserved characters intact, so it suits a complete URL where only spaces and non-ASCII characters need escaping.

Parsing a URL

Paste a URL to see its protocol, host (with port), path and hash. The query string appears as a table of keys and values that you can edit, add to or remove from.

The rebuilt URL updates instantly, with every value escaped correctly.

Common pitfalls

  • Do not run encodeURIComponent on a whole URL, it would escape the slashes and colon
  • A literal % must be written %25, otherwise decoding fails
  • In query strings a space may appear as + or %20; both decode to a space here

Frequently asked questions

Which one should I use for query parameters?+

Use encodeURIComponent for each parameter name and value, then join them with & and =. The parser table does this for you.

Why does decoding fail with an error?+

The text contains a % that is not followed by two hexadecimal digits, or an escape sequence that is not valid UTF-8. Fix or escape the stray % as %25.

Is my URL sent to a server?+

No. Parsing and encoding use your browser's built-in URL functions, and nothing is transmitted.

Related tools

Looking for AI tools with demo videos?

Browse GoodAI Life