URL Encoder & Decoder
Encode and decode URLs instantly. Choose between encodeURIComponent, encodeURI, or full percent-encoding. Parse query strings, build URLs, and copy results with one click. Free. No sign-up.
Query String Parser
Paste a full URL to extract and decode all query parameters.
How it works
- 1Enter your text
Paste or type raw text in the left panel, or an encoded URL in the right panel. The tool auto-detects percent-encoded input on paste.
- 2Choose encoding mode
Select encodeURIComponent for query values, encodeURI for full URLs, or Full Encode for every non-alphanumeric character.
- 3Copy or build
Copy the encoded or decoded result. Use the Query String Parser to inspect URL parameters, or the URL Builder to construct URLs from parts.
Why URL Encoding Matters for Developers
URLs are the backbone of the web, yet they have strict rules about which characters are allowed. Spaces, ampersands, question marks, non-ASCII characters, and many other symbols must be percent-encoded before they can safely appear in a URL. Without proper encoding, links break, API calls fail, and data gets corrupted during transmission.
JavaScript provides two built-in functions for URL encoding: encodeURI and encodeURIComponent. The difference is subtle but critical. encodeURI is designed for encoding a complete URI, so it preserves characters like /, ?, #, and & that have structural meaning. encodeURIComponent encodes everything except unreserved characters, making it the right choice for encoding individual query parameter values, form data, or any string that will become part of a larger URL.
Common scenarios where URL encoding is essential include building API request URLs with dynamic parameters, constructing OAuth callback URLs, embedding user-generated content in links, passing data through URL redirects, and creating mailto links with pre-filled subjects and bodies. Getting the encoding wrong in any of these cases can lead to security vulnerabilities, broken integrations, or data loss.
The Query String Parser in this tool is particularly useful for debugging. Paste a complex URL with dozens of parameters, and instantly see every key-value pair decoded and organized in a table. This saves time when inspecting tracking URLs, debugging OAuth flows, or reverse-engineering API endpoints. You can copy individual values or download everything as JSON for further analysis.
All processing runs entirely in your browser. Your URLs and data never leave your device, making this tool safe for encoding API keys, tokens, session IDs, and other sensitive information.
Frequently Asked Questions
Get GEO & AEO tips every week
The Layman SEO newsletter. Plain English updates on what is changing in search - SEO, AEO, and GEO - and what to do about it. One email a week. Unsubscribe any time.
No spam. No paywall content. Unsubscribe with one click.