📖 URL Encoding Reference
| Space | %20 | & | %26 |
| = | %3D | ? | %3F |
| / | %2F | # | %23 |
📘 How to Use This URL Encoder
- Choose your mode —
encodeURIComponentfor query parameter values,encodeURIfor full URLs - Paste your text — Enter the URL or string you want to encode/decode
- Click Encode or Decode — Results appear instantly in the output box
- Copy or Share — Use 📋 Copy to clipboard or 🔗 Share to create a shareable link with your input pre-filled
🏦 Track Your Budget Drift
Plan vs. reality budget tracker — 100% browser-based, zero sign-up
Try DonFlow →❓ Frequently Asked Questions
What is the difference between encodeURI and encodeURIComponent?
encodeURI encodes a full URI but preserves special characters like :, /, ?, and #. encodeURIComponent encodes everything except letters, digits, and - _ . ~, making it ideal for encoding individual query parameter values.
When should I use URL encoding?
Use URL encoding when passing special characters in query parameters, form data, or API requests. Characters like &, =, ?, and spaces must be encoded to avoid breaking the URL structure.
Is this tool safe for sensitive data?
Yes. This tool runs 100% in your browser using JavaScript's built-in functions. No data is sent to any server — you can verify in your browser's Network tab. See also: Base64 Encoder and Hash Generator for more client-side security tools.
How do I encode a URL with spaces?
Spaces are encoded as %20 with encodeURIComponent. Simply paste your text and click Encode — the tool handles all special characters automatically.
Can I decode a URL that was encoded multiple times?
Yes! If a URL was double-encoded (e.g., %2520 instead of %20), click Decode multiple times until the output looks correct. Each click decodes one layer.
What characters does encodeURIComponent NOT encode?
encodeURIComponent preserves A-Z, a-z, 0-9, and the characters - _ . ~. Everything else gets percent-encoded. Use JWT Decoder if you need to inspect encoded JWT tokens.