URL Encoder / Decoder
Free online URL encoder and decoder following RFC3986 percent-encoding, with clear errors for truncated % sequences.
Data handling: common local tools process inputs in your browser; network queries, server execution and optional AI follow their separate data-use notes.
What is URL Encoder / Decoder?
URLs may only contain a limited set of ASCII characters — Chinese text, spaces, & and = must be percent-encoded before being sent as parameters. When debugging "garbled parameters" or "truncated links", the first step is decoding the URL to see its real content. This tool performs full encodeURIComponent/decodeURIComponent conversion in both directions and reports truncated % sequences with a clear error message.
How to Use
- Paste text to encode or an encoded URL fragment
- Choose encode or decode
- Copy the result
FAQ
- Does a space encode to %20 or +?
- Per RFC3986 (encodeURIComponent) a space becomes %20; in application/x-www-form-urlencoded forms the convention is +. Servers usually accept both.
- Can I encode an entire URL at once?
- Not recommended. encodeURIComponent would also encode : / ? — the correct approach is encoding only the parameter values.
- What does the "incomplete % sequence" error mean?
- The text contains a % followed by fewer than two hexadecimal characters (like %2 or %GG), usually because the encoded string was truncated.
Practical tutorials
- URL Encoding and HTML Entities: What Are %20 and &?
The rules of percent-encoding and the reserved character table, why HTML entities exist, and how both prevent injection attacks and broken query parameters.
Related Tools
Last updated 2026-09-15