URL Encoder / Decoder
Encode or decode URL-safe strings instantly
📚 Learn more — how it works, FAQ & guide Click to expand
Learn more — how it works, FAQ & guide
Click to expand
Free URL encoder & decoder — instant, UTF-8 safe
Toololis URL Encoder converts between plain text and URL-safe percent-encoding. Use encodeURIComponent for individual query parameters or encodeURI for full URLs. Full UTF-8 support — emojis and international characters round-trip correctly.
How to use this tool
- 1
Pick a mode
Encode converts plain text to URL-safe percent-encoding. Decode converts %-encoded URLs back to readable text.
- 2
Paste your input
Drop in a URL, query string, or plain text. Conversion happens live as you type.
- 3
Copy the result
Tap Copy to send the encoded or decoded string to your clipboard.
Common encoding examples
- Space
" "→%20- Ampersand
&→%26- Question mark
?→%3F- Forward slash
/→%2F
Frequently Asked Questions
What is URL encoding?
URL encoding (percent-encoding) replaces characters that have special meaning in URLs with
% followed by their hex code. For example, a space becomes %20, and ? becomes %3F.When do I need URL encoding?
Whenever you put user input into a URL: query parameters (
?name=John%20Doe), path segments with special chars, or building API requests. Also essential for internationalized URLs (CJK text, accented letters).What is the difference between encodeURI and encodeURIComponent?
encodeURI() preserves URL structure (doesn't encode :/?#). encodeURIComponent() encodes everything, including structural chars — use this for individual query param values.Does this handle UTF-8?
Yes. Both
encodeURIComponent and decodeURIComponent handle UTF-8 correctly. Emojis, CJK characters, accents all round-trip safely.Is my data private?
Completely. Encoding/decoding runs in your browser using native JavaScript. Nothing is sent anywhere.
You might also like
🔒
100% Privacy. This tool runs entirely in your browser. Your data is never uploaded to any server.