URL Encoder/Decoder
Encode all special characters (including ; , / ? : @ & = + $ #)
Features
🔄
Dual Encoding Modes
Supports both encodeURIComponent and encodeURI modes for different use cases
⚡
Instant Encoding & Decoding
Click to encode or decode text instantly with fast response
🌐
UTF-8 Encoding
Uses UTF-8 encoding by default, fully supports Chinese, Japanese, Korean and other multilingual characters
📋
One-Click Copy
Copy the result to clipboard with a single click after encoding or decoding
How to Use
- 1
Enter or paste the text you want to process in the input area
- 2
Select encoding mode (encodeURIComponent or encodeURI)
- 3
Click the Encode or Decode button to see the result
FAQ
What is URL encoding?
URL encoding (percent-encoding) converts special characters in URLs to a % followed by two hexadecimal digits. For example, the Chinese text "你好" becomes %E4%BD%A0%E5%A5%BD after encoding.
What's the difference between encodeURIComponent and encodeURI?
encodeURIComponent encodes all special characters (including ; , / ? : @ & = + $ #), suitable for encoding URL parameter values. encodeURI preserves URL structure characters, suitable for encoding complete URLs.
Which characters are NOT encoded in URL encoding?
Letters (A-Z, a-z), digits (0-9), and a few special characters (- _ . ~) are not encoded. All other characters are converted to percent-encoded format.
When do I need URL decoding?
When you receive text containing percent-encoded sequences (e.g., URL parameter values from an API response), you need URL decoding to convert them back to readable text.