URL Encoder / Decoder

Percent-encode and decode URL components.

Runs entirely in your browser

Escapes reserved characters like : / ? # & =

FAQ

Component vs. Full URL — what's the difference?
Component (encodeURIComponent) escapes reserved characters like : / ? # & =, so the result is safe to drop inside a query parameter. Full URL (encodeURI) preserves those characters so an entire URL still parses.
Why does decode sometimes fail?
decodeURIComponent throws on malformed percent-escapes (e.g. %ZZ or a stray %). The tool surfaces the underlying URIError.

Related tools