RFC 3986 Percent-Encoding: Preserving Structural Integrity in Web URIs
The Uniform Resource Identifier (URI) specification defines a compact sequence of characters used to identify abstract or physical resources across the internet. Because network transport protocols were originally designed around US-ASCII, only a subset of printable characters can be safely transmitted without ambiguity.
When spaces, non-Latin alphabets, or reserved delimiter characters (such as question marks, ampersands, or slashes) are embedded within query parameters, web servers can misinterpret where a parameter begins and ends. Percent-encoding solves this by translating every unsafe byte into a three-character sequence consisting of a percent sign (%) followed by two hexadecimal digits representing the byte's numeric value.
Common Percent-Encoded URL Characters Reference
| Character | Percent Code | ASCII Hex |
|---|---|---|
| Space ( ) | %20 | 0x20 |
| Question Mark (?) | %3F | 0x3F |
| Ampersand (&) | %26 | 0x26 |
| Equals Sign (=) | %3D | 0x3D |
| Forward Slash (/) | %2F | 0x2F |
Privacy and Client-Side Execution Guarantee
Internal staging URLs, private API endpoints, and authentication tokens passed inside URLs should never be logged to third-party tracking databases. DocuPixa guarantees:
Zero Server Uploads
Conversions run 100% locally in your browser with zero network requests.
Transient Memory
Parameters clear immediately when the tab is closed.
High Speed
Instant encoding and decoding powered by native browser engines.
Frequently Asked Questions
What is URL encoding (percent-encoding)?
URL encoding converts reserved, unsafe, and non-ASCII characters into standard percent notation (% followed by two hexadecimal digits) conforming to RFC 3986, ensuring URLs transmit reliably across HTTP networks.
What is the difference between encodeURI and encodeURIComponent?
encodeURI encodes an entire URL while preserving protocol and path separators (: / ? # & =). In contrast, encodeURIComponent encodes all reserved punctuation, making it strictly safe for individual query parameter values.
Why do spaces turn into %20 or plus signs (+)?
RFC 3986 specifies %20 as standard percent-encoding for spaces in URL paths and parameters. Plus signs (+) are an older convention historically used within application/x-www-form-urlencoded query strings.
Is my query data sent to any remote server?
Never. All encoding and decoding routines execute locally inside your browser memory using native JavaScript URI functions.