URL Encode / Decode

Percent-encode special characters in URLs or query strings, and decode them back instantly.

URL Encode / Decode
Mode:

📐 How to Use

  1. Paste your text or URL in the input box.
  2. Choose "Full URL" to encode a complete URL (preserves :, /, ?, &, =, #).
  3. Choose "Component" to encode a query value — also encodes &, =, + and other structural characters.
  4. Switch to the Decode tab to convert a percent-encoded string back to plain text.

Frequently Asked Questions

QDifference between encodeURI and encodeURIComponent?
encodeURI encodes a full URL and preserves structural characters (/, ?, &, =, :, #). encodeURIComponent encodes a single URL component (e.g. a query value) and also encodes those structural characters.
QWhy does a space become %20?
In URL encoding (RFC 3986), spaces are replaced with %20. In HTML form encoding they become +, but %20 is the standard for URLs.

ℹ️ About This Tool

URL encoding (percent-encoding) replaces unsafe characters with a % followed by two hexadecimal digits. encodeURIComponent is stricter and also encodes characters like &, =, and + that have special meaning in query strings.