Skip to main content

URL Encoder & Decoder : Percent-Encoding Converter Online

The Calcivo URL Encoder & Decoder sanitizes web addresses and query parameters using standard RFC 3986 percent-encoding. It clearly separates component encoding from full URL sanitization to prevent broken query parameters.

Interactive Calculator

100% Client-Side Engine
69 chars
Encoded URL Output0 chars
encodeURIComponent vs encodeURI Explained

encodeURIComponent encodes all delimiters (including &, =, ?, /, #). Use this when placing data inside query parameter values.

encodeURI preserves protocol, host, and path delimiters (leaves http://, /, ?, &, = intact) and only percent-encodes spaces and non-ASCII characters. Use this when sanitizing an entire complete URL.

RFC 3986 Percent-Encoding Standard

Step-by-Step Examples

Encoding Query Parameter with Special Characters

Passing search queries containing spaces, ampersands, and equal signs.

Inputs: Parameter: q=shoes & shirts=sale
Result: q%3Dshoes%20%26%20shirts%3Dsale

Escapes delimiters to prevent ambiguity in HTTP GET query string parsing.

How to Use This Tool

  1. Select your action: Encode or Decode.
  2. Choose your target scope: encodeURIComponent (for parameter values) or encodeURI (for complete URLs).
  3. Paste your web link or query text into the input field.
  4. Copy the sanitized or decoded output for your codebase.

Frequently Asked Questions

encodeURIComponent encodes every reserved character including "&", "=", "?", and "/". encodeURI preserves URL protocol and path delimiters, only encoding spaces and non-ASCII characters.