🔗 URL Encoder / Decoder

Encode special characters for safe use in URLs, or decode percent-encoded URLs back to readable text.

Advertisement

📖 What is URL Encoding?

URL encoding (also called percent-encoding) replaces special characters in URLs with a percent sign (%) followed by two hexadecimal digits. This is necessary because URLs can only contain a limited set of characters from the ASCII character set. Characters like spaces, ampersands (&), question marks (?), and non-ASCII characters must be encoded.

For example, a space becomes %20, an ampersand becomes %26, and the Japanese character あ becomes %E3%81%82. This tool supports both encodeURI() (preserves URL structure characters like :/?) and encodeURIComponent() (encodes everything for use as a query parameter value).

❓ Frequently Asked Questions

encodeURI() encodes a complete URI, preserving characters that have special meaning in URLs (like :, /, ?, #, &). encodeURIComponent() encodes everything, making it suitable for encoding parameter values that might contain these special characters.

URLs can only contain ASCII letters, digits, and a few special characters. If your URL contains spaces, non-English characters, or special symbols, they must be percent-encoded to be valid. Without encoding, the URL may break or be misinterpreted by browsers and servers.

🔗 Related Tools