URL Encode & Decode

Encode URLs for safe transmission or decode percent-encoded strings back to readable text.

Your data stays in your browser — nothing is uploaded to any server.

or try sample data

What is URL Encoding?

URL encoding (also called percent-encoding) replaces unsafe characters in URLs with a percent sign followed by their hex code. This ensures URLs transmit correctly across the internet. For example, a space becomes %20 and an ampersand becomes %26.

  • Encode URL — uses encodeURI() to encode a full URL while preserving the structure (://?#&= are kept).
  • Encode Component — uses encodeURIComponent() to encode a value for use inside a query parameter (encodes everything including &, =, ?).
  • Decode — decodes any percent-encoded string back to readable text.
  • Swap — move the output back to input for chained conversions.
  • Privacy-first — all processing happens in your browser.