HelperCrate

URL Encoder

Percent-encode or decode URLs and query strings safely.

Your files never leave your device. Everything runs in your browser.

What URL Encoder does

URL Encoder percent-encodes any text so it can travel safely inside a URL, and decodes percent-encoded strings back to readable text. It applies the same rule as JavaScript's encodeURIComponent, which is what you need for query-string values, path segments, form fields and deep links that contain spaces, ampersands, accents or emoji.

Because the whole input is encoded as one value, characters that normally act as URL syntax — : / ? & = # — are encoded too. That is correct for a single value, but it means a complete URL comes back with its own separators escaped. Encode each query value separately when you want to keep the structure of a URL readable.

Encoding is UTF-8 based: a space becomes %20 and a non-ASCII character becomes one or more percent-escaped bytes. Decoding is the exact reverse, so any string produced by this tool can be pasted back in and restored.

How to use URL Encoder

  1. Paste the text or URL fragment you want to encode into the input box.
  2. Click Encode to produce the percent-encoded result.
  3. To go the other way, paste a percent-encoded string and click Decode.
  4. Use Copy to put the result on the clipboard.
  5. If decoding fails, check for stray percent signs and re-copy the string; the tool reports the error in a small message under the buttons.

Features

Tips and common mistakes

Frequently asked questions

What is the difference between encodeURI and encodeURIComponent?

encodeURI leaves URL syntax characters such as : / ? & = intact so a whole URL stays usable, while encodeURIComponent escapes them so the value can be inserted as a single parameter. This tool uses the encodeURIComponent rule, which is the right choice for query values.

Why does a space become %20 instead of +?

%20 is the URL-standard encoding for a space. The + convention comes from HTML form submissions and works only in specific content types. This tool always emits %20, which is safe in every part of a URL.

Does decoding turn plus signs into spaces?

No. A literal + is not valid percent-encoding for a space here, so it is left as a plus sign. If a server sent you form-encoded data where + means space, replace the plus signs with spaces before decoding.

Can the tool encode a complete URL?

It can, but the result escapes the URL's own punctuation, so it is only useful when the URL is data rather than a link. Encode individual query values and leave the separators alone if you want a clickable URL.

Does it handle non-English text?

Yes. Characters outside ASCII are converted to their UTF-8 bytes and each byte is percent-escaped, so accents, Greek, Cyrillic, Chinese and emoji all round-trip correctly.

Is any data sent to a server?

No. Encoding and decoding both use browser functions on your device, so the text never leaves the page.

Encoding and decoding run entirely in your browser — the text you paste is never uploaded.