🔗 URL Encoder & Decoder

Encode special characters for safe URL usage, or decode percent-encoded strings back to readable text. Essential for web developers.

What is URL Encoding?

URL encoding (also called percent-encoding) converts characters that are not allowed in URLs into a safe format. For example, spaces become %20, and special characters like & become %26.

Common Encodings

CharacterEncodedNote
Space%20Also encoded as + in query strings
&%26Parameter separator in URLs
#%23Fragment identifier
?%3FQuery string start
/%2FPath separator
中文%E4%B8%AD%E6%96%87Non-ASCII characters use UTF-8

All encoding/decoding uses your browser's built-in encodeURIComponent() and decodeURIComponent() functions.

FAQ

What's the difference between encodeURI and encodeURIComponent?

encodeURI() is for encoding a full URL —it preserves characters like :// and /?&. encodeURIComponent() encodes everything, including those special characters, and is used for encoding individual query parameter values.

Is encoding/decoding done on your server?

No. All conversion uses your browser's native encodeURIComponent() and decodeURIComponent() functions. No data is ever sent to any server.