URL Encoder / Decoder

Encode text for use in URLs, or decode percent-encoded strings back to plain text.

How to Encode / Decode URLs

Enter text in the input field, then click Encode or Decode. Use the small buttons to choose between encodeURI (preserves URL structure) and encodeURIComponent (encodes everything for query parameters).

When to Use Each

  • encodeURI — encode a full URL (preserves ://?#) — use when you have a complete URL with special chars in the path
  • encodeURIComponent — encode a query parameter value (encodes everything) — use for ?key=value
  • Decode — convert percent-encoded strings back to readable text