URL Encoder/Decoder
Encode and decode URLs, query parameters, and special characters
Encoding Method
Result
Result will appear here...
URL Encoding Guide
encodeURIComponent
- ✓ Query parameter values
- ✓ Form data submission
- ✓ Path segments with special chars
- ✓ Any user input in URLs
encodeURI
- ✓ Complete URLs
- ✓ Preserve URL structure
- ✓ URLs with encoded chars
- ✓ Redirecting to full URLs
Common Encoded Characters
How to Use
- 1
Choose mode
Select encode or decode mode
- 2
Enter text
Type or paste your URL or text
- 3
Select encoding type
Choose between encodeURI and encodeURIComponent
- 4
Copy result
Click copy button to save the encoded/decoded result
Frequently Asked Questions
What's the difference between encodeURI and encodeURIComponent?
What's the difference between encodeURI and encodeURIComponent?
encodeURI preserves URL structure by not encoding characters like :/?#[]@!$&'()*+,;= which are valid in URLs. encodeURIComponent encodes all special characters, making it safe for query parameters and form data.
When should I use URL encoding?
When should I use URL encoding?
Use URL encoding when including user input in URLs, passing data through query parameters, submitting form data, or working with APIs. It ensures special characters and international text are transmitted correctly.
Why do spaces become %20?
Why do spaces become %20?
Spaces are not allowed in URLs and must be encoded. %20 is the percent-encoded representation of a space character (ASCII code 32 in hexadecimal). Some systems also use + for spaces in query strings.
How do I handle international characters?
How do I handle international characters?
International characters (like Korean, Chinese, Arabic) are automatically converted to UTF-8 and then percent-encoded. This ensures they can be safely transmitted in URLs regardless of the server or browser configuration.