🔗 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
| Character | Encoded | Note |
|---|---|---|
| Space | %20 | Also encoded as + in query strings |
| & | %26 | Parameter separator in URLs |
| # | %23 | Fragment identifier |
| ? | %3F | Query string start |
| / | %2F | Path separator |
| 中文 | %E4%B8%AD%E6%96%87 | Non-ASCII characters use UTF-8 |
All encoding/decoding uses your browser's built-in encodeURIComponent() and decodeURIComponent() functions.
FAQ
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.
No. All conversion uses your browser's native encodeURIComponent() and decodeURIComponent() functions. No data is ever sent to any server.