Loona Automation logoLoona Developer Tools
Home › Developer Tools › URL Encoder & Decoder

URL Encoder & Decoder - Percent-Encoding Made Simple

In short: the URL Encoder percent-encodes text so it can travel safely inside a web address, and decodes percent-encoded text back - with both component mode (for query values) and full-URL mode, plus a table explaining every character.

Spaces, ampersands and non-English letters cannot travel raw inside a URL - they get mangled, break query strings, or change the meaning of the address. Percent-encoding fixes that by replacing each unsafe byte with a % code. This tool does it both ways and shows you exactly what happened to every character.

Per-character breakdown

Encode something and every character of your input is explained here.

Private by design: everything in this tool happens 100% in your browser with JavaScript. Your input is never uploaded to a server, never stored and never seen by us - close the tab and everything is gone.

How to use the URL Encoder & Decoder

  1. Paste text or a URL into the box.
  2. Choose Component mode for a query value, or Full URL mode for a whole address.
  3. Click Encode or Decode, then copy the result.

How it works

Percent-encoding works on the UTF-8 bytes of a character: the space becomes %20, an ampersand becomes %26, and the letter "é" becomes %C3%A9 - one % code per byte. The two modes differ in what they protect: encodeURIComponent (Component) also encodes characters like / ? : and # because a query value must not contain the URL's own punctuation; encodeURI (Full URL) leaves that punctuation intact because it belongs to the address itself. Choosing the wrong mode is the classic beginner bug - encoding a full URL in Component mode destroys it, and encoding a query value in Full mode leaves & and = free to break your parameters.

Worked example

The search text "loona tools & guides" in Component mode becomes loona%20tools%20%26%20guides - safe to place after ?q= in an address. The same text barely changes in Full URL mode, which is why mode choice matters.

Frequently Asked Questions

Is this URL encoder free?

Yes - free, with no sign-up and no limits.

Which mode should I use?

Component mode for anything that goes inside a URL as a value (search text, names, redirect targets). Full URL mode only when you are encoding an entire address and must keep its : / ? # structure.

Why does one letter sometimes become two % codes?

Non-English characters are stored as several UTF-8 bytes, and each byte gets its own % code - for example é becomes %C3%A9. That is correct and every server understands it.

What does decoding do with a broken % sequence?

It reports an error instead of guessing, because a malformed sequence like %zz has no valid meaning.

Is my text uploaded?

No - encoding and decoding happen entirely in your browser.

Related Developer Tools

Embed this tool on your website — free

Add this tool to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the tool to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.