URL Encoder / Decoder
Percent-encode text for URLs or decode it back — with encodeURIComponent and encodeURI modes.
How to use URL Encoder / Decoder
-
Choose encode or decode
Use the toggle at the top to pick a direction — Encode turns text into a percent-encoded string, Decode turns percent-encoding back into readable text.
-
Pick an encoder when encoding
Choose Component to escape every reserved character for a single value, or Full URL to encode a whole address while keeping its structure. Component (encodeURIComponent) is the default.
-
Type or paste your input
Drop text (to encode) or a percent-encoded string (to decode) into the box. The result appears instantly below — there’s no button to press.
-
Copy, download or chain it
Copy or download the output in a click, or hit “Use result as input” to flip the mode and feed the result straight back in for a quick round-trip check.
Key features
- Live, two-way conversion — encode and decode with a single toggle
- Two encoders: encodeURIComponent (escapes everything) and encodeURI (keeps URL structure)
- Friendly, inline error when decoding malformed percent-encoding
- Full Unicode support — accents, emoji and non-Latin scripts round-trip cleanly
- One-click “use result as input” swap plus live character counts
- One-click copy and download; 100% in-browser, nothing uploaded
About URL Encoder / Decoder
A fast, no-nonsense URL encoder and decoder that runs entirely in your browser. Switch between Encode and Decode and the result updates live as you type. When encoding, choose Component (encodeURIComponent) to escape every reserved character — including & = ? / — so the value is safe inside a single query parameter or path segment, or Full URL (encodeURI) to keep an already-assembled address readable by leaving its structure intact. Decoding turns sequences like %20 and %C3%A9 back into text and shows a clear message if the input contains a malformed escape, such as a stray “%”. Copy or download the result in one click, or swap it back as input for a quick round-trip. Nothing is ever uploaded — it’s all local, free, and free of sign-ups and limits.
Last updated 2 June 2026.
Frequently asked questions
- What is URL encoding?
- URL encoding (also called percent-encoding) replaces characters that aren’t allowed in a URL — or that have a special meaning, like spaces, &, ? and = — with a “%” followed by their hexadecimal byte value. For example a space becomes %20. It lets arbitrary text travel safely inside web addresses and query strings.
- What’s the difference between encodeURI and encodeURIComponent?
- encodeURIComponent escapes every reserved character, including & = ? / # and :, so it’s the right choice for a single piece of a URL such as one query value or path segment. encodeURI assumes you’re passing a complete URL and deliberately leaves those structural characters unescaped so the address still works. As a rule: use Component for values, Full URL for whole links.
- Why does a space become %20 (or sometimes +)?
- In percent-encoding a space is represented as %20, which is what this tool produces. The “+” form comes from the older application/x-www-form-urlencoded rules used for HTML form submissions, where “+” means a space inside a query string. Both decode back to a space, but %20 is the more general and widely safe choice.
- Why won’t my text decode?
- Decoding fails when the input contains a “%” that isn’t followed by two valid hexadecimal digits — for example a lone “%”, “%2” or “%ZZ”. That’s an incomplete or invalid escape sequence. Check for stray percent signs or a truncated value; once the %XX sequences are well-formed it will decode cleanly.
- Does it handle emoji and non-English characters?
- Yes. Characters are encoded as their UTF-8 bytes, so an accented letter like é becomes %C3%A9 and emoji expand to several %XX bytes. Decoding reassembles those bytes back into the original characters, so any language round-trips perfectly.
- Is my data sent to a server?
- No. All encoding and decoding happens locally in your browser using the standard built-in functions. Whatever you paste never leaves your device, and the tool keeps working offline once the page has loaded.
Related searches
Related tools
Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 back to text — UTF-8 safe, with URL-safe output.
JSON Formatter & Validator
Format, validate and minify JSON — with clear, located error messages.
Number Base Converter
Convert whole numbers between binary, octal, decimal and hexadecimal — live, in your browser.