URL Encoder / Decoder
Switch between Encode and Decode mode to convert text to percent-encoded format or back to readable strings. This tool uses JavaScript's encodeURIComponent/decodeURIComponent functions, making it safe for query parameters, form data, and API payloads. Nothing is sent to a server.
Related Tools
[6 suggestions]URL Parser and Query Editor
Split a URL into scheme, host, path, query parameters and fragment, then edit the parameters and rebuild the link.
Developer & WebBase64 Encoder / Decoder
Easily encode plain text to Base64 format or decode Base64 back to readable text.
Developer & WebJSON Formatter
Validate, pretty-print, and minify JSON with clear error reporting for invalid input.
Developer & WebUUID Generator
Generate cryptographically random UUID v4 identifiers instantly, one or in bulk.
Developer & WebHTML Entity Encoder / Decoder
Escape text as HTML entities, or turn named and numeric entities back into characters.
Format ConversionHyperlink Generator
Make a hyperlink as HTML, Markdown and BBCode, build mailto links, add new tab and rel options, or convert a list of URLs.
Developer & WebGuides for the URL Encoder / Decoder
- How to Create UTM Links That Track Correctly
How to create UTM links step by step: the five parameters, why case matters, and the #anchor mistake that makes a link record nothing. Tested on 5,000 links. (November 22, 2026)
- QR Code Error Correction Levels: How Much Damage Can Each Survive?
QR code error correction levels L, M, Q and H compared, with measured tests of how much of a code a logo or damage can cover. (November 16, 2026)
- URL Slug Best Practices: 8 Rules, Examples and a Free Generator
URL slug best practices: hyphens, lowercase, accents, non-Latin titles, length and changing a live slug, with Google's guidance and our test results. (October 26, 2026)
- How to Extract Email Addresses from Text: Tool, Regex and Pitfalls
How to extract email addresses from text with a free tool, JavaScript or Python, tested on 20 tricky inputs, plus why a common regex can freeze a page. (October 26, 2026)
About the URL Encoder / Decoder
URL encoding (also called percent-encoding) replaces characters that have special meaning in URLs — such as spaces, ampersands (&), question marks (?), hash symbols (#), and forward slashes (/) — with a percent sign followed by their two-digit hexadecimal byte value. For example, a space becomes %20 and an ampersand becomes %26. This tool uses JavaScript's encodeURIComponent(), which encodes all reserved URI characters, making it safe for individual query parameter values, form field submissions, and API request bodies. The companion decodeURIComponent() reverses the process, converting percent-encoded sequences back to readable UTF-8 characters. Developers commonly need this when debugging API integrations, constructing redirect URLs with dynamic parameters, or inspecting encoded cookie values. Unlike encodeURI() (which leaves structural characters like / and ? intact for encoding full URLs), encodeURIComponent() is the correct choice when your input is a single value that may contain any of these reserved characters.
Why do URLs need encoding?▾
Characters like spaces, &, ?, #, and / have special syntactic meanings in URLs. Percent-encoding (e.g., space becomes %20) ensures user data is not mistaken for URL delimiters.
What is the difference between encodeURI and encodeURIComponent?▾
This tool uses encodeURIComponent, which encodes all special characters including /, ?, and #. Use this when encoding individual query parameter values, not entire URLs.
Can I decode complex nested query strings?▾
Yes — the decoder handles nested percent-encoded characters and UTF-8 sequences. Paste any encoded string and get the readable version instantly.