URL Encoder & Decoder Online
Free online URL encoder and decoder. Encode special characters for URLs or decode percent-encoded strings back to readable text.
Input
Result
💡 What is this
URL Encoding
- URL encoding (percent encoding) replaces unsafe characters in URLs with a % followed by two hex digits.
- This ensures URLs are valid and can contain special characters, spaces, and non-ASCII text.
📖 How to use
Step by Step
- Paste text or a URL into the input
- Click Encode to percent-encode it
- Or paste encoded text and click Decode
- Copy the result to use in your code
🎯 Use cases
When to use
- Building query strings with special characters
- Encoding form data for HTTP requests
- Decoding URLs from logs or analytics
- Handling non-ASCII characters in URLs
Frequently Asked Questions
What's the difference between encodeURI and encodeURIComponent?▾
encodeURI preserves URL structure characters like ://?#. encodeURIComponent encodes everything except letters, digits, and - _ . ~. This tool uses encodeURIComponent for maximum safety.
Are spaces encoded as + or %20?▾
This tool encodes spaces as %20 (standard percent encoding). The + encoding is specific to form submissions (application/x-www-form-urlencoded).