BlueCheddar

URL encoder and decoder

This URL encoder percent-encodes text for a link, and decodes it back, with a clear choice between one component and a whole URL. It runs on your device, and what you paste stays there.

Direction
What it is



How to encode a URL

  1. Choose encode or decode.
  2. Choose one component, such as a query value, or a whole URL.
  3. Paste your text, then copy the result.

Questions

Should I choose component or whole URL?

Use component for one piece that goes inside a URL, such as a search term. It escapes / ? & = and #, so they cannot change the URL's structure. Use whole URL for a complete address, which keeps those characters working. These match JavaScript's encodeURIComponent and encodeURI.

Why does the decoder refuse my text?

A % must have two hex digits after it, and the bytes must be valid UTF-8. The page names the character where it stopped. %E9, for example, is Latin-1 for é, so it is refused. In UTF-8, é is %C3%A9.

Is a space %20 or a plus sign?

In a URL, %20 always works. A plus means a space only in form data, the part of a query sent by an HTML form. Turn on the plus option to write or read that form. It applies only to a component, because a plus in a whole URL can be a real plus.

Why did my text get %25 everywhere?

It was probably encoded already, so each % was encoded again, and %20 became %2520. The page warns you when the input already has escapes. Decode once to go back.

Is anything sent or saved?

No. It works on this page alone, with no request and no storage. You can check the page's requests yourself.