URL Encoder / Decoder
Encode and decode URLs and query string components. Supports full URL and component encoding modes.
How to Use
- Type or paste your URL or text into the Input area. Choose Full URL mode to encode a complete URL (preserving protocol, slashes, and structure), or Component mode to encode a single query parameter or path segment.
- The Encoded and Decoded outputs update instantly as you type. Full URL mode uses encodeURI — safe for complete URLs. Component mode uses encodeURIComponent — encodes all special characters including slash and ampersand.
- Click Copy next to the Encoded or Decoded output to copy the result to your clipboard. Switch between modes at any time to see how the same input is handled differently.
Frequently Asked Questions
- What is the difference between Full URL and Component mode?
- Full URL mode (encodeURI) preserves characters that are valid in a URL — like slash, colon, and question mark. Component mode (encodeURIComponent) encodes everything including those characters, making it safe for encoding individual query parameter values.
- When should I encode a URL?
- Encode URLs when passing them as query parameters, storing them in databases, or sending them in HTTP headers. Spaces become %20 and special characters become percent-encoded sequences that are safe for transmission.
- Why does my already-encoded URL look the same after encoding?
- If your input already contains percent signs (like %20), encodeURI will not double-encode them — this is expected behavior. If you need to encode a literal percent sign, use Component mode and encode the raw string before it gets percent-encoded.