Understanding URL Encoding & Percent-Encoding
URL Encoding (also referred to as percent-encoding) transforms reserved, unsafe, and non-ASCII characters into standard US-ASCII hexadecimal byte triplets (%XX). This ensures URLs conform to the RFC 3986 standard and prevent transmission errors across HTTP clients, servers, and web proxies.
How to Use in 3 Quick Steps
- Enter Your Input: Type or paste raw text, query parameter strings, or complete URLs into the input workspace.
- Select Encoding Mode & Action: Choose between Query Component mode (for parameter values) or Full URL mode (for complete link addresses), then click Encode or Decode.
- Copy the Processed Result: Check the real-time preview and click Copy to immediately paste safe, compliant URLs into your codebase or API calls.
Component vs. Full URL Mode Comparison
| Mode | Underlying Method | Characters Preserved | Primary Use Case |
|---|---|---|---|
| Query Component | encodeURIComponent | A-Z a-z 0-9 - _ . ! ~ * ' ( ) | Query parameter keys and values containing delimiters like &, =, or / |
| Full URL | encodeURI | Protocol delimiters (: // ? # @ & = + $ ,) | Sanitizing an entire URL with spaces or unicode characters without breaking link routing |
Common Reserved Character Sequences
Frequently Asked Questions
What is the difference between %20 and + for spaces?
In standard RFC 3986 URI percent-encoding, a space is encoded as %20. The plus sign + is specifically used for spaces in legacy HTML form data (application/x-www-form-urlencoded). For standard REST endpoints and modern APIs, %20 is universally preferred.
How are multibyte UTF-8 characters (emojis, accents) handled?
Multibyte characters are first converted into their UTF-8 byte representation, then each individual byte is percent-encoded. For example, the character "é" encodes to %C3%A9.
Handling JSON payloads in URL parameters?
Before encoding JSON objects into URLs, use our JSON Formatter & Minifier to minify the string, minimizing unnecessary URL length.

