URL Encoder & Decoder Online
Encode or decode URLs and query string parameters. Handles special characters, spaces, and unicode.
What is URL Encoding?
URL encoding (percent-encoding) replaces unsafe characters with a "%" followed by two hexadecimal digits. For example, a space becomes %20 and an ampersand becomes %26. This ensures URLs are transmitted correctly over the internet.
encodeURI vs encodeURIComponent
encodeURIComponent encodes everything except letters, digits, and a few special characters. Use it for query string values. encodeURI preserves characters that are part of a valid URL structure (like :, /, ?, #). Use it for full URLs.