We use cookies.This website uses essential cookies to operate core features. With your consent, we also use analytics cookies to understand traffic and improve the service. For more details, see our .
Was this tool helpful to use?
Your feedback helps us make it better
Free online tool for Escape encoding and decoding strings, making URL parameter passing and data processing easier.
Overview
Understand what the tool solves, how it works, and the boundaries of its data.
This encoder and decoder uses JavaScript’s legacy escape() and unescape() format. It changes text representation; it does not encrypt, hash, or protect information. Some ASCII characters remain unchanged, while a space becomes %20 and the Chinese character 中 becomes %u4E2D.
The older format works on UTF-16 code units: values through 255 use two hexadecimal digits, while larger values use %u followed by four digits. This differs from modern URI component encoding. The UTF-8 representation of 中 is %E4%B8%AD, not %u4E2D. These forms are not interchangeable unless the receiving system expects the same representation.
URI percent-encoding represents bytes as %HH groups; modern URL processing commonly encodes text as UTF-8 bytes. For a query parameter, follow the receiving application’s requirements. JavaScript encodeURIComponent() is commonly used for an individual component value.
Guide
Follow the workflow and verify inputs and outputs with practical examples.
Encode readable text in the legacy format, or decode text containing sequences such as %20 and %u4E2D.
Paste plain text or a candidate Escape string. Output updates as you work; the example and clear controls help start over.
Encoded output may combine unchanged letters, %XX, and %uXXXX. Compare sample characters with the destination’s expected format.
Use output only when the receiving system expects this older representation. Generate UTF-8 URL encoding when that is what the destination requires.
For “Hello 中,” Escape gives Hello%20%u4E2D. UTF-8 component encoding represents 中 with byte groups, %E4%B8%AD. The difference can help diagnose a format mismatch.
Use cases
See how the tool fits into real work and everyday tasks.
Decode a copy of a record containing percent-u sequences to read it and identify its format before changing a pipeline.
Compare a sample with the receiver’s documented format to distinguish legacy Escape from UTF-8 URI encoding.
Q&A
Find concise answers to common questions and confusing cases.
No. It is a legacy Escape representation of a UTF-16 code unit. Standard URI percent-encoding uses two hex digits after the percent sign for each octet.
No. It can be reversed without a secret key. Do not use it to conceal passwords, tokens, or private information.
Use the URI component encoding required by the application, commonly UTF-8 percent-encoding such as encodeURIComponent(). Encode a parameter value, not an entire URL indiscriminately.
Notes
Review scope, result limitations, and important precautions before use.
This is a legacy text conversion, not a general URL encoder or security feature.
Related
Discover related tools, collections, and available API capabilities.