URL Encoder Decoder Tool - Multi-Mode URL Encoding and Decoding with URL Parser
First Published:
Last Updated:
Free URL Encoder and Decoder with multiple encoding modes. All encoding and decoding processes are performed entirely within your browser — your data never leaves your device or gets sent to any server.
- This tool is provided "AS IS" without any warranties of any kind.
- The author accepts no responsibility for data loss or corruption during encoding/decoding.
- URL encoding/decoding results should be verified before use in production systems.
- Always keep backups of your original data.
- By using this tool, you accept full responsibility for any outcomes.
Privacy: This tool uses client-side JavaScript for all processing. No data is transmitted to servers, no files are uploaded online, all processing happens locally in your browser. Once loaded, this tool continues to work even without an internet connection. For more details, please refer to our Web Tools Disclaimer.
Features:
- Multiple Encoding Modes: Choose from
encodeURIComponent(most common for query parameters),encodeURI(preserves URI structure), RFC 3986 strict (encodes additional characters like!'()*), and Form encoding (application/x-www-form-urlencodedwith+for spaces). - Encoding Comparison: See how the same input text is encoded differently by each mode in a side-by-side comparison table with highlighted percent-encoded characters.
- Character Breakdown: View a per-character analysis showing Unicode code points, UTF-8 byte values, and encoding results across all four modes.
- URL Parser: Decompose any URL into its components (protocol, host, path, query parameters, fragment) with both raw and decoded values.
- Double-Encoding Detection: Automatically warns if your input appears to already contain percent-encoded characters, helping you avoid the common double-encoding mistake.
- Real-Time Encoding: Enable live encoding that updates as you type for instant feedback.
- Bulk Mode: Process multiple values at once with line-by-line encoding or decoding.
- Swap Input/Output: Quickly swap encoded and decoded text for iterative encoding/decoding workflows.
- Full Unicode Support: Correctly handles multi-byte characters including CJK, emoji, and other non-ASCII text via UTF-8 encoding.
- 100% Client-Side: All processing happens in your browser. No data is transmitted to any server.
- Works Offline: Once loaded, the tool works without an internet connection.
How to Use:
- Encode Text: Enter text in the left "Plain / Decoded Text" area, select an encoding mode, and click "Encode →".
- Decode Text: Enter percent-encoded text in the left area and click "← Decode" to get the original text in the right area.
- Choose Encoding Mode: Use the dropdown to select the appropriate mode for your use case —
encodeURIComponentfor query parameter values,encodeURIfor full URIs, RFC 3986 for strict compliance, or Form encoding for HTML form submissions. - Compare Modes: Go to the "Compare Modes" tab, enter text, and see how each encoding mode handles it differently with per-character analysis.
- Parse URLs: Go to the "URL Parser" tab, enter a complete URL, and click "Parse URL" to see all components broken down with decoded values.
- Real-Time Mode: Check "Real-time encoding" to see encoded output update as you type.
- Bulk Processing: Check "Bulk mode" to encode or decode multiple lines at once, each line processed independently.
Important Notes:
encodeURIComponentis the most commonly used mode for encoding individual query parameter values. It encodes all characters exceptA-Z a-z 0-9 - _ . ! ~ * ' ( ).encodeURIis designed for encoding a full URI while preserving its structure (scheme, host, path delimiters). It does NOT encode: / ? # [ ] @ ! $ & ' ( ) * + , ; =.- RFC 3986 mode provides the strictest encoding by also encoding
! ' ( ) *whichencodeURIComponentleaves unencoded. - Form encoding (
application/x-www-form-urlencoded) converts spaces to+instead of%20, matching how HTML forms submit data. - Multi-byte Unicode characters (e.g., Japanese, Chinese, emoji) are first converted to UTF-8 bytes, then each byte is percent-encoded (e.g.,
%E4%B8%96). - A common mistake is double-encoding — encoding text that is already encoded. This tool detects and warns about this scenario.
References:
Tech Blog with curated related content
Web Tools Collection
Written by Hidekazu Konishi