URL Encoder / Decoder
Percent-encode and decode URLs and query strings.
What this tool does
Encodes and decodes text for six different situations, not just plain percent-encoding — and when the input is a real URL, shows it broken into its actual parts alongside the encoded result.
Component vs full URL — the mistake a single mode lets you make
Percent-encoding a URL is not one operation. Encoding a single
component — a query value, a path segment — should
escape everything, including /, :, and
?, because inside that one piece those characters are
just data. Encoding a full URL needs the opposite:
those same characters have to stay literal, or the URL's own
structure breaks. Using the wrong one is a common, quiet bug —
encoding a whole URL as if it were one component turns
https://example.com/a?b=c into something no longer
recognizable as a URL at all. Both modes are available separately
here specifically so that mistake does not happen by only having
one option.
Beyond percent-encoding
- Form data — the
application/x-www-form-urlencodedconvention a browser actually uses for a submitted form, where a space becomes+rather than%20. - HTML entities —
<,>,&, and the rest, for text going into HTML rather than a URL. - Base64 and Unicode escapes
(
\uXXXX) — for the other common places text needs a safe, ASCII-only representation.
Seeing a URL broken into its parts
Paste a complete URL and it is parsed live into its protocol, host, port, path, fragment, and every individual query parameter as a separate key and value — a quick way to check exactly what a long or heavily-encoded URL actually contains before deciding what to do with it.
Privacy
Encoding, decoding, and URL parsing all happen in your browser. Nothing you paste is sent to a server.