🔗
Free URL Encoder & Decoder — Encode URLs for the Web
Encode and decode URL components safely.
About URL Encoder / Decoder
Convert special characters in URLs to percent-encoded format (like spaces to %20) and decode them back. Essential for constructing query strings, handling user input in URLs, fixing broken links with non-ASCII characters, and debugging API requests. Also encodes and decodes full URI components for use in path segments and query parameters.
How to Use URL Encoder / Decoder
- 1Paste the URL or text you want to encode/decode
- 2Click Encode to percent-encode special characters, or Decode to make them readable
- 3Toggle between encodeURIComponent and encodeURI mode
- 4Copy the result and use it in your link or API call
When to Use URL Encoder / Decoder
- ▸Constructing query strings with special characters and spaces
- ▸Fixing broken URLs that contain non-ASCII characters
- ▸Encoding user input before appending to API endpoint URLs
- ▸Decoding garbled URLs from browser address bars
Frequently Asked Questions
- What's the difference between encodeURI and encodeURIComponent?
- encodeURI preserves URL structure characters (:/?#[]@). encodeURIComponent encodes everything except alphanumerics and -_.!~*'(), making it ideal for query parameter values.
- When should I URL-encode text?
- Encode whenever user input, spaces, or special characters appear in URL paths or query strings. Without encoding, your URL may break or cause security issues like injection attacks.
You Might Also Like
🪣📋🔐🏷️
Hash Generator
Generate MD5, SHA-1, SHA-256, SHA-512 hashes from text.
JSON Formatter
Format, validate, minify, and visualize JSON as an interactive tree.
Base64 Encoder / Decoder
Encode and decode Base64 strings instantly.
HTML Entity Encoder
Encode special characters to HTML entities and decode them back.