DevToolBoxFREE
Blog

URL Encode Decode

Encode or decode URL strings online. Handles special characters, spaces, Unicode, and query parameters using percent-encoding.

URL encoding (percent-encoding) replaces unsafe characters in URLs with a % sign followed by two hexadecimal digits. Spaces become %20, ampersands become %26, and Unicode characters are encoded as UTF-8 byte sequences. This tool supports both encodeURIComponent (for query parameters) and encodeURI (for full URLs).

FAQ

What is URL encoding?
URL encoding (percent-encoding) converts characters that are not allowed in URLs into a format using % followed by hex digits. For example, a space becomes %20, & becomes %26, and non-ASCII characters like accented letters are encoded as UTF-8 byte sequences.
What is the difference between encodeURI and encodeURIComponent?
encodeURI encodes a full URI but preserves characters like :, /, ?, #, and & that have special meaning in URLs. encodeURIComponent encodes everything including those special characters, making it suitable for encoding individual query parameter values.
When should I URL encode?
URL encode when passing special characters in query string parameters, embedding URLs within other URLs, handling user input in URL paths, or transmitting data that contains characters with special meaning in URLs such as &, =, ?, #, spaces, and non-ASCII characters.
๐• Twitterin LinkedIn

Rate this tool

3.6 / 5 ยท 156 ratings

Stay Updated

Get weekly dev tips and new tool announcements.

No spam. Unsubscribe anytime.

Enjoy these free tools?

โ˜•Buy Me a Coffee