Format Conversion100% private
URL Encoder / Decoder
Percent-encode or decode URLs, query strings, and text - with option to keep or escape forward slashes.
Output: 50 characters
How it works
- 1Paste a URL or textEnter any URL, query string, or text that needs percent-encoding.
- 2Choose the modeEncode escapes special characters; decode turns %20 and similar back into readable text.
- 3Copy the outputGrab the result with one click. Nothing is sent to a server.
Frequently asked questions
What's the difference between encodeURI and encodeURIComponent?
encodeURI keeps URL structure characters (: / ? & =) intact and is for whole URLs. encodeURIComponent escapes everything and is for individual query parameters or path segments.
What does %20 mean?
Percent-encoding replaces a space with %20 (its hexadecimal ASCII code). Encoded URLs only use safe ASCII characters like A-Z, 0-9, and a few symbols.
Why did my decode fail?
If the text contains a stray % not followed by two hex digits, it's not valid percent-encoding. Pasted text that was already decoded will also cause this.