URL Encoder / Decoder
Encode and decode URLs and URL components. Handles percent-encoding, query strings, and path segments — with a built-in percent-encoding reference table.
Characters that must be percent-encoded in URLs. Click any row to encode that character.
| Character | Encoded | Name | Notes |
|---|
Disclaimer: Free tool provided “as is” by MonitorGiant. No warranty or liability for any data loss, security issues, or infrastructure problems arising from use of this tool. Results are for informational purposes only. · A Free Tool by MonitorGiant
How URL Encoder / Decoder works
URLs can only contain a limited set of ASCII characters. Any special character — spaces, punctuation, Unicode — must be percent-encoded before it can safely travel over the web. This tool handles all three encoding scenarios: single components, full URLs, and query strings.
- 1
Choose the right mode
Component mode (encodeURIComponent) encodes everything except letters, digits, and - _ . ~ — ideal for a single query value or path segment. Full URL mode (encodeURI) preserves :, /, ?, & and other structural characters — use it when encoding an entire URL. Query String mode encodes each key and value separately, keeping the & separators intact.
- 2
Paste your text and click Encode or Decode
Type or paste the raw text into the Input box and click Encode to get the percent-encoded form, or paste an encoded URL and click Decode to recover the original characters. The Swap button lets you flip the output back to the input for chained operations.
- 3
Copy and use the result
Click Copy to grab the output, then paste it into your code, config file, or browser address bar. The reference table at the bottom shows which characters require encoding and why — click any row to see that character encoded instantly.
All encoding and decoding runs entirely in your browser using the built-in encodeURIComponent / decodeURIComponent / encodeURI / decodeURI JavaScript functions. No text is ever sent to a server.
Wondering how to URL encode a string that contains spaces or special characters? URLs can only carry ASCII letters, digits, and a small set of punctuation. Spaces become %20 (or + in query strings), and characters like &, =, #, and ? must be percent-encoded when they appear inside values. This tool covers all three cases: encoding a single component value (the most common need), encoding a full URL while preserving its structure, and decoding any percent-encoded string back to readable text.
Comments & Feedback
Found a bug? Have a suggestion? We'd love to hear from you.
Related Tools
From the makers of this tool
Need deeper observability?
MonitorGiant tracks real-time AI performance, infrastructure health, and system reliability — far beyond what free utilities can show.