URL Encoder / Decoder

Convert text to URL-safe format and decode encoded URLs instantly. Perfect for fixing broken links, UTM parameters, and handling special characters. Secure & Client-Side

AdSense Space

Encodes spaces as %20, & as %26, ? as %3F, etc. for URL-safe format.

Common Encoding Examples

Original:

https://site.com/search?q=café & books

Encoded:

https%3A%2F%2Fsite.com%2Fsearch%3Fq%3Dcaf%C3%A9%20%26%20books

Original:

email=user@domain.com&message=Hello!

Encoded:

email%3Duser%40domain.com%26message%3DHello%21

Managing affiliate income globally? Tired of high transfer fees?

Send and receive international affiliate payments with the real exchange rate and minimal fees. Perfect for digital marketers, affiliate managers, and online entrepreneurs working with global partners.

Get Paid Globally with Wise (Zero Fees)

Opens in new window

Frequently Asked Questions

When should I use URL encoding?

URL encoding is essential when including special characters in URLs, such as spaces, ampersands (&), question marks (?), equals signs (=), or non-ASCII characters. It's required for query parameters, UTM tracking codes, form data submission, and any text that will be part of a URL. For example, "café & books" becomes "caf%C3%A9%20%26%20books" in a URL.

What's the difference between encodeURI and encodeURIComponent?

encodeURI is used for encoding entire URLs and preserves characters like /, :, @, etc. that have special meaning in URLs. encodeURIComponent is more strict and encodes all characters except letters, digits, -, _, ., and ~. Use encodeURIComponent for values within a URL (like query parameters), and encodeURI for entire URLs. This tool uses encodeURIComponent as it's safer for most use cases.

Why do I see %20 in URLs instead of spaces?

URLs cannot contain spaces. The space character is encoded as %20 (or sometimes as + in query strings). %20 is the hexadecimal representation of space in ASCII (20 in hex = 32 in decimal, which is the ASCII code for space). Other common encodings include %3F for ?, %26 for &, %3D for =, and %40 for @. This encoding ensures URLs remain valid and can be transmitted correctly across networks.

Can URL encoding fix broken or malformed links?

Yes! URL encoding/decoding tools are excellent for troubleshooting broken links. If a link contains unencoded special characters, it may break when clicked. Encoding these characters fixes the issue. Conversely, if you have an encoded URL that's hard to read, decoding it helps you understand what the link contains. This is particularly useful for analyzing UTM parameters, affiliate links, and tracking URLs.

AdSense Space