Loading tools...
Loading tools...
Encode and decode URLs instantly in your browser. Component and full URL modes, graceful error handling. No server, no tracking.
Two encoding modes, instant output, graceful error handling — all in your browser.
Convert plain text or URL components to percent-encoded format. Supports both component encoding (encodeURIComponent) and full URL encoding (encodeURI).
Convert percent-encoded URLs back to readable text using decodeURIComponent. Handles all valid percent-encoded sequences including Unicode characters.
Switch between Encode and Decode modes with a single click. Use the Swap button to automatically flip the input and output for quick round-trips.
Choose between encodeURIComponent (for query string values) or encodeURI (for complete URLs that preserve /, ?, &, and # characters).
Malformed percent-encoded sequences (like %ZZ) are caught gracefully with a clear error message rather than crashing or returning garbled output.
Copy the encoded or decoded result to your clipboard with one click. Character counts are shown on both input and output for quick reference.
encodeURI encodes a full URL and leaves structural characters like /, ?, #, and & untouched. encodeURIComponent is stricter — it encodes everything except letters, digits, and a few safe characters. Use encodeURIComponent for individual query parameter values, and encodeURI (or the "Full URL" mode here) for complete URLs.
URLs can only contain certain ASCII characters. Spaces, Unicode characters, and reserved characters must be percent-encoded (e.g., space → %20). Proper encoding prevents broken links, injection attacks, and parsing errors when building URLs programmatically in API calls or query strings.
A malformed sequence occurs when a URL contains an invalid percent-encoded value like "%ZZ" (not valid hex). The decodeURIComponent function throws a URIError in these cases. This tool catches the error and shows you a clear message so you can identify and fix the problematic part of your input.
Disclaimer: This tool is provided for informational and educational purposes only. Preview renderings are approximations and may differ from actual platform displays due to platform updates, caching, or rendering differences. We fetch publicly available metadata and do not store or share your URLs. Platforms may cache old data even after you update your content—use their official debug tools to refresh caches. ZIRA Software is not liable for any decisions made based on this tool's output.