Home / Data / URL Encoder & Decoder

URL Encoder & Decoder

Turn spaces, accents and symbols into safe percent-encoded URLs — or decode them back. Three modes cover the three real jobs, results update as you type, and nothing you paste ever leaves this page.

Full URL keeps the link's structure intact; Component encodes everything that could break a query value; Decode reverses encoding.

Your result appears here as you type.

Overview

Links break for silly reasons. A space in a filename, an accented letter in a name, a & inside a search term — each one is harmless to humans and poison to a URL parser. Percent-encoding is the agreed fix: replace the offending byte with % and two hex digits. This tool applies that fix in the mode your situation actually needs.

That last part matters more than it sounds. Encoding a whole address and encoding one query value are different operations with different rules — mix them up and you encode the ? and & that hold the URL together. The three modes here keep the jobs separate: full URL, single component, and decode.

What does percent-encoding do?

It rewrites any byte a URL cannot contain as a % sign followed by two hexadecimal digits. A space becomes %20, é becomes %C3%A9 (two bytes in UTF-8, hence two triplets). The result is pure ASCII, which every server, browser and email client on earth can transport without mangling.

The subtlety is which characters to leave alone. In a full URL, structural characters like : / ? & = must survive — they are the grammar of the address. Inside a single value, those same characters are data and must be encoded. That is why encodeURI and encodeURIComponent exist as separate functions, and why this tool exposes both.

Features

Benefits

Who can use it

Web developers building query strings and APIs, marketers assembling tracked campaign links, support staff untangling broken URLs customers paste into tickets, and students learning how the web actually transports text. Anyone who has ever seen %20 in an address bar and wondered what happened will get something from the decode mode alone.

How to use

  1. Choose Full URL to encode a complete address, Component for a single value, or Decode to reverse.
  2. Paste or type your text into the input box.
  3. Read the encoded result as it updates live below.
  4. Check the reference table if you want to see what individual characters become.
  5. Press copy and paste the result wherever the URL needs to go.

Frequently asked questions

When should I use full-URL mode vs component mode?

Use full-URL mode when the whole address needs encoding but its structure must survive — the ?, & and = that separate parameters stay intact. Use component mode for a single value you are placing inside a URL, like a search term or a name: there, even & and = are data and must be encoded, or they will be misread as structure.

Why does a space sometimes become %20 and sometimes +?

Both are historical conventions. %20 is the proper percent-encoding for a space in a URL path. The + form comes from HTML form submissions (application/x-www-form-urlencoded), where spaces in form data are sent as +. They mean the same thing in query strings, but %20 is the safer, more universal choice.

Do I need to encode non-English characters?

Yes. URLs are officially ASCII-only, so characters like é, 中 or emoji must be encoded as their UTF-8 bytes. Modern browsers often display the pretty form while sending the encoded form behind the scenes — this tool shows you the encoded form explicitly, which is what servers actually receive.

Can encoding break a URL that already works?

Double-encoding can: encoding %20 again gives %2520, which decodes to the literal text %20 instead of a space. If a URL already contains % triplets, decode it first or encode only the unencoded parts. The decode mode exists precisely for inspecting such URLs.

Is what I paste sent anywhere?

No. Encoding is pure string arithmetic done in your browser. URLs often contain tokens and private parameters, so the tool was built to never transmit them.

Conclusion

Percent-encoding is a small discipline with an outsized payoff: pick the right mode for the job, let the tool do the byte work, and your links will survive every server, inbox and chat app they pass through.

Related tools

DataBase64 Encoder & DecoderEncode and decode Base64 text with proper UTF-8 safety. DataRegex TesterTest regex patterns live, with matches highlighted. DataJSON FormatterFormat, validate and minify JSON with clear errors.