URL Encoder / Decoder
Percent-encode text for URLs, or decode it back to plain text.
What is URL Encoding?
URL (percent) encoding replaces characters that aren't allowed or that have special meaning in a URL — spaces, ampersands, question marks and non-ASCII characters — with a % followed by their hexadecimal byte value, so the address stays valid and unambiguous wherever it's used.
How to use it
- Choose Encode or Decode.
- Pick Component mode when encoding a single value that will go inside a query parameter (it also escapes
& ? / : =), or Full URL mode when encoding an entire address and you want those structural characters left alone. - Type or paste your text and copy the result.
Component mode uses JavaScript's encodeURIComponent, the right choice whenever you're building a single query-string value that itself might contain reserved characters — for example, encoding a search phrase before appending it to ?q=. Full URL mode uses encodeURI, which assumes you're already passing a complete, structurally valid URL and only escapes things like spaces and unicode characters, leaving the slashes, colons and ampersands that separate the URL's parts intact. Getting this distinction right matters: encoding a whole URL with component mode would also escape its slashes and colons, breaking it.