URL Encoder & Decoder

Percent-encode text for safe use in URLs, or decode %20-style strings back to plain text. Two modes, because a whole URL and a single query value need different treatment.

Ad slot — paste your AdSense code here (see README)

Which mode do I need?

Component mode is for values that will live inside a URL — a search term, a tag, a UTM parameter. It escapes everything special, including &, =, ? and #, so a value like rock & roll becomes rock%20%26%20roll and can't break the query string.

Full URL mode is for a complete address you want to make legal — it leaves the ://, slashes and separators alone and fixes only what must be escaped. If your link shows %3A%2F%2F in the middle of itself, you used the wrong mode.

Decoding works in both modes and is handy for cleaning up redirect URLs, mailto: links and analytics strings that arrive double-encoded.