Unicode Escape to JavaScript
Decode JavaScript \uXXXX escapes back to text in your browser. Surrogate pairs are joined and a malformed escape is reported.
What this unicode escape to javascript does
The decoder walks the string, rebuilds each code unit from its four hex digits, and leaves unescaped text alone. A \u followed by anything other than four hex digits is an error, so a truncated literal is visible instead of producing a replacement character.
How to use it
Unicode Escape to JavaScript: paste the JavaScript escapes into the box above, and press Run to get the text below.
Worked example
Input:
\u0048\u0069\u0020\u2713
Output:
Hi ✓
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 JavaScript escapes and returns text; reloading the page discards both.
The decoder walks the string, rebuilds each code unit from its four hex digits, and leaves unescaped text alone. A \u followed by anything other than four hex digits is an error, so a truncated literal is visible instead of producing a replacement character.
Decode JavaScript \uXXXX escapes back to text in your browser. Surrogate pairs are joined and a malformed escape is reported.
How to use it
Unicode Escape to JavaScript: paste the JavaScript escapes into the box above, and press Run to get the 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 JavaScript escapes and returns text; reloading the page discards both.
What to Expect
Best for
- Converting JavaScript escapes to 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
\u0048\u0069\u0020\u2713
Sample output
Hi ✓
Frequently asked questions
How do I use the unicode escape to javascript?
Unicode Escape to JavaScript: paste the JavaScript escapes into the box above, and press Run to get the 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.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.