Developer Tools

URL Encoder / Decoder

Encode & decode URLs instantly

Encode special characters in URLs using percent-encoding, or decode percent-encoded URLs back to readable text. Switch between encodeURIComponent and encodeURI modes — instantly in your browser.

How to Use URL Encoder / Decoder

  1. 1Select "Encode" or "Decode" mode
  2. 2Paste your URL or text into the input box
  3. 3Result appears instantly as you type
  4. 4Toggle between encodeURIComponent (encodes all special chars) and encodeURI (preserves URL structure)
  5. 5Click "Copy" to copy the output

Features

  • URL percent-encoding and decoding with instant results as you type
  • encodeURIComponent mode for encoding individual query parameters
  • encodeURI mode for encoding full URLs while preserving structure characters
  • All processing browser-local — your URLs stay private

Frequently Asked Questions

When should I use encodeURIComponent vs encodeURI?

Use encodeURIComponent for encoding individual query parameters (it encodes / ? & = # etc). Use encodeURI for encoding full URLs (it preserves URL structure characters like / ? & = #).

What characters get encoded?

encodeURIComponent encodes everything except A–Z a–z 0–9 - _ . ! ~ * ' ( ). encodeURI additionally preserves : / ? # [ ] @ ! $ & ' ( ) * + , ; =.

What's the difference from Base64 encoding?

URL encoding is for making URLs safe for transport. Base64 is for encoding binary data as text. Use the Base64 Encoder for Base64 conversion.