URL Encoder/Decoder
Encode or decode URL strings and query parameters. Supports full URL and component encoding. Free online tool.
Preparing private browser tool…
Frequently asked questions
- What is URL encoding?
- It replaces special characters (spaces, &, =, /) with percent-escape sequences so they can safely appear in URL query strings.
- What's the difference between encodeURI and encodeURIComponent?
- encodeURI preserves URL structure (keeps :/?& intact). encodeURIComponent encodes everything except alphanumerics - use it for query parameter values.
- Is it safe for special Unicode characters?
- Yes. Non-ASCII characters (한, 日, é) are encoded to their UTF-8 byte sequence automatically.
- Can I decode a percent-encoded string?
- Yes. Paste any encoded URL and the tool decodes it back to the readable form.
- Why does decoding report an error?
- Decoding fails when the input contains a stray percent sign or an incomplete escape such as %ZZ. Fix or remove the broken sequence; the tool will not guess what the original character was.
- Are spaces encoded as %20 or as a plus sign?
- As %20. The plus sign convention belongs to form bodies sent as application/x-www-form-urlencoded, so swap %20 for + yourself if you are building that kind of payload.