URL Encoder / Decoder
Encode, decode, and parse URLs with percent encoding. All processing happens in your browser.
Input
encodeURIComponent()
Encodes all special characters including : / ? # @ and more. Use for query parameter values.
encodeURI()
Preserves URL-structural characters like : / ? # @. Use for encoding a full URL without breaking its structure.
encodeURI() vs encodeURIComponent()
- encodeURIComponent() encodes everything except A-Z a-z 0-9 - _ . ! ~ * ' ( ). Best for encoding individual query parameter keys and values.
- encodeURI() leaves URL-structural characters intact: : / ? # [ ] @ ! $ & ' ( ) * + , ; =. Best for encoding an entire URL while keeping its structure valid.
- Rule of thumb: use
encodeURIComponent()for values, useencodeURI()for full URLs.
URL Parser
Paste a full URL to break it down into its components.
Stats
About this tool
- Converts live as you type. No need to click a button.
- All processing happens in your browser. No data is sent to any server.
- Full UTF-8 support including emoji and non-Latin scripts.
- Shows both encodeURI and encodeURIComponent results so you can pick the right one.