URL Encoder and Decoder
Percent-encode text for safe inclusion in URLs, or decode percent-encoded strings back into readable characters. It handles the escaping that spaces, ampersands, and non-ASCII characters demand.
Using the URL Encoder & Decoder: step by step
- Paste the text you want encoded into the input field.
- Press encode to produce the percent-encoded string.
- Paste an encoded string and press decode to restore the original characters.
- Copy the result into your link, query string, or code.
What people use the URL Encoder & Decoder for
- Building query strings that include spaces, symbols, or user-provided text.
- Decoding URLs from logs to see what was actually requested.
- Preparing values for redirect parameters where escaping is mandatory.
- Checking why a link broke after unescaped characters passed through a system.
Inside the URL Encoder & Decoder
Encoding uses the encodeURIComponent convention, which escapes reserved characters like ampersand and equals signs so they no longer carry structural meaning inside a query value. Decoding reverses the process for both percent-encoding and the plus-sign space convention. Since URLs frequently contain tokens, session identifiers, and internal paths, the tool keeps everything local.
Limitations worth knowing
Encode values that go into a URL, not entire URLs; encoding a full URL escapes its structural characters and breaks the link.
URL Encoder & Decoder FAQ
Why do spaces become %20?
Spaces are not allowed unescaped in URLs, so they are replaced with their hexadecimal byte value.
Should I encode a whole URL or only the parameters?
Only the parameter values; encoding structural characters like slashes would break the address.
Is it safe to paste URLs with tokens in them?
Yes here, because encoding and decoding never leave your browser.
Last reviewed: October 2026.