URL Encode / Decode
URL encode and decode online free. Convert text to percent-encoded URL format and back. No upload, instant browser-based tool.
How to Use URL Encode Decode
- Select Encode or Decode mode using the tabs.
- For encoding, enter your text or URL and choose between encodeURIComponent (for query params) or encodeURI (preserves URL structure). For decoding, paste an encoded string.
- Click the action button or type live to see instant results. Copy the output with one click.
Features
- Dual Encoding Modes - encodeURIComponent for query parameters, encodeURI for full URLs.
- Live Encoding - results update in real time as you type.
- Decode Support - convert percent-encoded strings back to readable text.
- Copy to Clipboard - instantly copy results with a single click.
Why Use Our URL Encode Decode Tool
URL encoding (percent-encoding) is essential for safely including special characters in URLs. Our tool makes it easy to encode query parameters, path segments, and full URLs. With both encodeURIComponent and encodeURI modes, developers can choose the exact behavior needed. The live encoding feature shows results as you type, making it perfect for quick testing and debugging.
FAQs
What's the difference between encodeURI and encodeURIComponent?
encodeURI preserves URL structure characters (: / ? # [ ] @ ! $ & ' ( ) * + , ; =), while encodeURIComponent encodes almost everything. Use encodeURIComponent for query parameter values.
Why do spaces become %20?
Spaces are not allowed in URLs. Percent-encoding replaces them with %20 to ensure safe transmission. Modern browsers handle this automatically, but manual encoding is needed for API calls and URL construction.
Is my data sent to a server?
No, everything runs in your browser using JavaScript. Your text never leaves your device, making it completely safe for sensitive strings, API keys, and tokens.