JavaScript escape() Encoder screenshot

JavaScript escape() Encoder

Apply the legacy JavaScript escape() function in your browser. Code units become %XX or %uXXXX exactly as the old API produced them.

Privacy First
0 Runs
Updated 2026-11-06
No upload
Instant
No signup

What this javascript escape() encoder does

escape() leaves letters, digits and @*_+-./ alone, percent-encodes bytes below 256 as %XX, and writes every other UTF-16 code unit as %uXXXX. It is deprecated in favour of encodeURIComponent, but old cookies and logs still carry its output, which is why the quirk is reproduced rather than modernised.

How to use it

JavaScript escape() Encoder: paste the text into the box above, and press Run to get the escaped text below.

Worked example

Input:

a b&é

Output:

a%20b%26%E9

Why it runs in your browser

The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads text and returns escaped text; reloading the page discards both.

escape() leaves letters, digits and @*_+-./ alone, percent-encodes bytes below 256 as %XX, and writes every other UTF-16 code unit as %uXXXX. It is deprecated in favour of encodeURIComponent, but old cookies and logs still carry its output, which is why the quirk is reproduced rather than modernised.

Apply the legacy JavaScript escape() function in your browser. Code units become %XX or %uXXXX exactly as the old API produced them.

How to use it

JavaScript escape() Encoder: paste the text into the box above, and press Run to get the escaped text below.

Why it runs in your browser

The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads text and returns escaped text; reloading the page discards both.

What to Expect

Best for

  • Converting text to escaped text when the data is already on screen.

What this tool keeps

  • Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere.

Sample input

a b&é

Sample output

a%20b%26%E9

Frequently asked questions

How do I use the javascript escape() encoder?

JavaScript escape() Encoder: paste the text into the box above, and press Run to get the escaped text below.

Is my input uploaded?

No. The text is parsed on this page with JavaScript and is never posted to a server.

Is there a size limit?

Yes: 5 MB per run. Larger input is refused with a message rather than freezing the tab.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.