URL Percent Encoder & Decoder Online

Encode special characters into percent-encoded URI strings and decode encoded query parameters safely with full UTF-8 and component encoding support.

How to Use URL Percent Encoder & Decoder Online

  1. Paste URL or Query Parameter: Enter a full website URL, query parameter, or text containing special characters.
  2. Select Component vs Full URI Mode: Choose encodeURIComponent (escapes symbols like ? and &) or encodeURI (preserves URL protocol and slash delimiters).
  3. Copy Percent-Encoded Output: View the safely escaped URI string where spaces become %20 and special characters are safely escaped.

Frequently Asked Questions

What is URL percent-encoding?

Defined in RFC 3986, percent-encoding replaces unsafe ASCII characters and non-ASCII bytes with a '%' followed by their two-digit hexadecimal value.

When should I use encodeURIComponent vs encodeURI?

Use encodeURI when encoding a complete URL (preserving http:// and slashes). Use encodeURIComponent when encoding individual parameter values so query delimiters like '=' and '&' do not corrupt query parsing.