HomeDev Tools › URL Encoder

🔗 Free URL Encoder & Decoder

Encode special characters in URLs using percent-encoding, or decode percent-encoded URLs back to readable text. Instant and free.

✅ Free⚡ Instant🔗 encodeURIComponent📋 Copy Output

URL Encoder / Decoder

Quick Reference — Common Encodings

CharacterEncodedDescription
Space%20Whitespace
!%21Exclamation mark
#%23Hash / Fragment
&%26Ampersand (param separator)
=%3DEquals (key=value)
?%3FQuery string start
@%40At sign

Frequently Asked Questions

What is URL encoding?
URL encoding (percent-encoding) replaces unsafe ASCII characters with a % followed by their hex value. It ensures special characters in URLs don't break the URL structure. E.g., a space becomes %20.
What's the difference between encodeURI and encodeURIComponent?
encodeURI encodes a complete URL and preserves URL structural characters like /, ?, &, #. encodeURIComponent encodes a URL component (like a query parameter value) and also encodes these structural characters. Use encodeURIComponent for values in query strings.
When do I need URL encoding?
You need URL encoding when passing user input as URL query parameters, when building API requests with special characters in values, or when creating redirect URLs that contain query strings.