Encoding Tool

URL Encoder / Decoder

Encode special characters in URLs, decode percent-encoded strings, parse URL components, and build query strings all in one place.

Advertisement 728×90
Mode
Encoding Type
Quick Samples
Raw URL / Text
0chars
Encoded Result
Result will appear here…
Advertisement 728×90

URL Encoding Explained

🔗
What is URL Encoding?
URL encoding (percent-encoding) converts characters into a format that can be safely transmitted over the internet by replacing unsafe characters with % followed by hex values.
⚙️
encodeURIComponent vs encodeURI
encodeURIComponent encodes everything including &, =, and ? best for query values. encodeURI keeps those characters as they have meaning in a full URL.
🌍
Unicode Support
Non-ASCII characters like Arabic, Chinese, or emoji are encoded as UTF-8 byte sequences. e.g. "مرحبا" becomes %D9%85%D8%B1%D8%AD%D8%A8%D8%A7
🛡️
Security Benefits
Proper URL encoding prevents injection attacks by ensuring special characters are treated as data, not as URL structure or code.