URL Encoder/Decoder

Percent-encode or decode URLs and query string components.

Loading tool…

About this tool

Encode special characters in URLs for safe transmission, or decode percent-encoded URLs back to readable text.

How to use

  1. Paste a URL or text string.
  2. Choose encode or decode, and component vs. full-URI mode.
  3. Copy the result.

FAQ

What's the difference between encodeURIComponent and encodeURI?

encodeURIComponent escapes more characters (including &, =, ?) and is meant for individual query parameter values; encodeURI is for full URLs and preserves URL structure characters.

Does it handle Unicode characters?

Yes, Unicode characters are percent-encoded as UTF-8 byte sequences.