URL Encoder & Decoder : Percent-Encoding Converter Online
The Calcivo URL Encoder & Decoder sanitizes web addresses, query strings, and form parameters using standard RFC 3986 percent-encoding. It clearly distinguishes component encoding (for query parameter values) from full URL sanitization to prevent broken links, parameter truncation, and HTTP transmission errors with 100% in-browser security.
Interactive Calculator
100% Client-Side EngineStep-by-Step Examples
Encoding Query Parameter with Delimiters
Passing search queries containing spaces, ampersands, and equal signs without breaking parameter parsing.
Escapes delimiters to prevent HTTP GET parsers from splitting single values into separate parameters.
OAuth 2.0 Redirect URI Parameter
Safely passing a callback URL as a query parameter in an authentication flow.
All slashes, colons, and question marks are converted into percent codes to preserve integrity.
UTF-8 Non-ASCII Multilingual URL Decoding
Restoring a localized percent-encoded international address into readable characters.
Two-byte UTF-8 percent sequences %D8%AD are decoded into their native Arabic/Urdu unicode characters.
How to Use This Tool
- Select your desired action: Encode to convert plain text into percent-encoded entities, or Decode to restore human-readable URLs.
- Choose your target scope: encodeURIComponent (ideal for parameter values) or encodeURI (for complete URLs with protocols intact).
- Paste your web link, API query string, or token text directly into the input field.
- Copy the sanitized, valid RFC 3986 output instantly for your codebase, REST API client, or browser navigation.
Pro Tips & Best Practices
- encodeURIComponent vs encodeURI: Always use encodeURIComponent for individual query parameter values (like search queries or tokens), and encodeURI only when sanitizing an entire full web URL.
- Percent-20 vs Plus (+): In standard query strings, %20 is the official RFC 3986 standard for space. The plus sign (+) is only valid in application/x-www-form-urlencoded form post bodies.
- Double-Encoding Pitfall: Never run encode on a string that is already percent-encoded, as %20 will become %2520, causing 404 and API parsing errors.
- Security & Parameter Injection: Properly encoding user inputs in query strings prevents HTTP Parameter Pollution (HPP) and Cross-Site Scripting (XSS) vectors.