URL Encoder & Decoder — Encode and Decode URLs Instantly
Real-time, side-by-side URL encoding and decoding. Switch between encodeURIComponent and encodeURI for query params vs full URLs — runs entirely in your browser.
encodeURIComponent and encodeURI for query params vs full URLs.Encode
Decode
How to Use
- Pick the right panel — Use the Encode panel (left) to convert raw text into URL-safe percent encoding, or the Decode panel (right) to read a percent-encoded URL back into plain text.
- Paste your input — Type or paste into the panel’s input. The output updates instantly as you type — no button click needed. Use the Mode toggle to choose between encodeURIComponent (for query parameters and path segments) and encodeURI (for full URLs).
- Copy the result — Click Copy beside the output to send the encoded or decoded text to your clipboard. The character count under each panel shows how the size changed.
Why Use This Tool
Every URL on the web is governed by a strict set of reserved characters — ?, &, =, #, /, and the humble space — that have structural meaning. The moment you embed user input, file names, search queries, or non-ASCII text into a URL, those characters need to be escaped into their percent-encoded form (%20 for space, %26 for ampersand, and so on) or the request silently breaks in surprising ways.
Picking the right encoder matters. encodeURIComponent is the safe default for any single piece of a URL — a query parameter value, a path segment, an OAuth state token. encodeURI is for an entire pre-built URL where you want to leave the structure intact. Mixing them up is one of the most common bugs in client-side URL building, which is why this tool exposes both modes side-by-side instead of hiding one behind the other.
Going the other direction — decoding a percent-encoded URL back into something readable — is just as useful when you're debugging a redirect chain, reading a server log, or inspecting a referrer header. Paste the raw string in, get the original characters back, and copy either side of the conversion to your clipboard. Everything happens in your browser, so the URLs you paste are never sent to a server.
Frequently Asked Questions
Related Tools
Format, beautify, and validate JSON online for free. Pretty print with 2-space, 4-space, or tab indent. Minify JSON, see exact error line numbers.
Encode images to Base64 or decode Base64 to images. Data URI, raw string, HTML tag output.
Convert text to UPPERCASE, lowercase, Title Case, Sentence case, or aLtErNaTiNg CaSe instantly.
Count characters with live progress bars for Twitter, Instagram, and SEO limits.