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
- 1Select "Encode" or "Decode" mode
- 2Paste your URL or text into the input box
- 3Result appears instantly as you type
- 4Toggle between encodeURIComponent (encodes all special chars) and encodeURI (preserves URL structure)
- 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.