URL Encoder / Decoder
Encode or decode URLs instantly in your browser. Choose between Full URL and URL Component mode. Results update in real time.
Mode:
0 chars
0 chars
Common Encoded Characters
Click any example to load it into the encoder.
encodeURI vs encodeURIComponent
🌐 Full URL Mode
Uses encodeURI(). Preserves characters valid in a full URL like :, /, ?, #, &.
🔧 Component Mode
Uses encodeURIComponent(). Encodes everything except letters, digits, and -_.!~
📋 When to Encode
Encode when passing URLs as query params or in API calls where special chars could break parsing.
🔍 Percent Encoding
Each unsafe char is replaced by % followed by two hex digits of the UTF-8 byte value.