Unicode Escape Converter

Characters—
Escapes—

How Unicode Escape Converter is calculated: Every non-ASCII character becomes a backslash-u followed by four hex digits: é is U+00E9, so it becomes the six characters backslash-u-0-0-e-9.

A Unicode Escape Converter, in plain words

A Unicode escape converter turns characters into the backslash-u codes that JSON, Java, and JavaScript use for non-ASCII text — and turns those codes back into readable characters. It works entirely in your browser: you type or paste text, and the result appears at once, with nothing uploaded and nothing stored. People searching for a unicode escape converter usually want exactly that — a quick answer without an account, a download, or a wait.

Developers writing JSON by hand, Java programmers pasting foreign text into string literals, and anyone debugging a file full of backslash-u codes they cannot read. Students use it for homework and puzzles, developers use it at work, and writers use it when a deadline is close. The common thread is simple: the job is small, the answer should be instant, and the text should stay private.

This page keeps that promise. The unicode Escape Converter runs on your own device, so your words never leave the tab. You can use it as often as you like, on any text, and close the page knowing nothing was saved anywhere — there is no history, no log, and no sign-up standing between you and the answer.

If you have never used a tool like this before, start with the example on this page and change one thing at a time — one word, one setting — and watch the result change. That is the fastest way to learn what each input does, and it works for every tool in this family, because they all follow the same pattern: text in, result out, nothing saved.

How the Unicode Escape Converter does its job

Encoding walks the text character by character: plain ASCII passes through, except the backslash itself, and every other character becomes a backslash, a 'u', and four hex digits — its Unicode code point, padded with leading zeros. Decoding finds each backslash-u group, reads the four hex digits as a number, and turns it back into the character. Backslash-n, backslash-t, and backslash-r are also recognised on the way back. The rule this page uses is: Every non-ASCII character becomes a backslash-u followed by four hex digits: é is U+00E9, so it becomes the six characters backslash-u-0-0-e-9.

Characters outside the basic multilingual plane, such as emoji, are stored in JavaScript as two 16-bit units, so each half becomes its own escape — an emoji turns into two backslash-u codes, not one. The tool counts escapes, not characters, so an emoji counts as two.

Because the rule never changes, the same input always gives the same output. Run the example below twice and the result will match exactly, character for character. That predictability is what makes the tool useful for checking your own work. For a different kind of text job, the hex text converter covers the next step once you have your result. The comparison section further down this page explains which of the two fits which job, so you can pick before you paste.

The rule above is the whole method — there is no hidden step and no second pass. What you see in the rule is what the tool computes, which is why the worked example below can be followed by hand, one step at a time, with a pencil if you like.

The text you feed it

Any text works, but only non-ASCII characters change: 'Hello' encodes to exactly 'Hello', because every letter is plain ASCII. The action is all in the accented letters, the symbols, and the scripts beyond ASCII.

'Aé' becomes 'A\u00e9': the A passes through, and é is U+00E9, so it becomes the six characters backslash-u-0-0-e-9. The escape count above reads 1, because only one character needed escaping.

When you paste JSON into this tool to decode it, paste only the string value, not the whole JSON object — the quotes and braces around it are not escapes and will pass through unchanged, which is harmless but confusing.

When in doubt, try the worked example below first — it uses the page defaults, so it shows the tool working exactly as it ships.

Paste from anywhere — a document, a chat, a web page. The tool reads only the text you give it, so stray formatting, links, and images are left behind. If the pasted text looks odd, paste it as plain text first and then copy it in, so nothing invisible rides along.

A worked example

Take this input: 'Aé' — the letter A followed by an accented e. The A is plain ASCII, so it passes through. The é is U+00E9, so it becomes the six-character escape backslash-u-0-0-e-9. The result is 'A\u00e9' — 7 characters for 2 characters of input, with 1 escape counted.

Decode 'A\u00e9' and you get 'Aé' back: 00e9 in hex is 233 in decimal, and Unicode code point 233 is é. Count the escape: there is exactly one, because only the é needed one.

Try 'Hi' with no accented letters: the output is 'Hi' unchanged, and the escape count reads 0. That is the point of the format — plain text stays plain, and only the unusual characters become codes.

You can check the result yourself without trusting the page. Reverse the operation — decrypt what you encrypted, or run the output back through the tool with the opposite setting — and the original input should come back. If it does not, the first thing to check is the input: a missing letter, an extra space, or a setting that changed between the two runs.

Who uses a Unicode Escape Converter — and why

A developer pastes a French error message into a Java properties file as escapes, because the file must stay pure ASCII. It is the kind of job that comes up often enough to remember, and rarely enough to justify installing anything for.

A tester reads a JSON response full of backslash-u codes and decodes it to see the actual text the API returned. The JSON formatter is the natural next stop when the result needs a different treatment. It answers the question this page leaves open, so the two together cover the whole job.

A student learning Unicode converts a name with accents to escapes to see the code points behind the letters.

Unicode Escape Converter vs ASCII Converter

The ASCII converter shows the numeric code of each character, while this tool writes the code as a backslash-u escape you can paste into code. One is for reading codes; the other is for writing them. The ASCII converter is the closest comparison on this site, and the two answer different questions. Both are free, both run in your browser, and neither asks for an account.

Pick the unicode Escape Converter when you need text in backslash-u form for JSON, Java, or JavaScript source code. Pick the ascii converter when you want to see the decimal, hex, and binary codes of each character side by side.

In practice most people keep both bookmarked. They are small, free, and private, and switching between them costs nothing — paste the same text into each and compare the outputs side by side before deciding which one fits the job in front of you. The habit that saves the most time is deciding the job first and the tool second: once you know whether you need a cipher, a conversion, or a count, the choice between two similar tools is usually obvious.

Where people go wrong with a Unicode Escape Converter

Escaping plain ASCII by hand. Only non-ASCII characters need escapes in JSON — writing 'H' as backslash-u-0-0-4-8 works, but it makes the file unreadable for no reason.

Forgetting that emoji need two escapes. An emoji is two 16-bit units in JavaScript, so it becomes two backslash-u codes, and deleting one half leaves a broken character.

Decoding the whole JSON file instead of the string. The braces and quotes are not escapes, so they pass through — but the result is confusing if you expected only the string back. Using lowercase versus uppercase hex inconsistently. Both are valid, but a file that mixes backslash-u-0-0-e-9 and backslash-u-0-0-E-9 is harder to search — this tool always writes lowercase hex. The fix in every case is the same: check the input, check the setting, and test with the worked example before trusting a long result.

If the result still looks wrong after checking the input, run the worked example exactly as written. If the example works and your input does not, the difference is in your input — compare them character by character, including spaces, until the odd one out shows itself.

How to use this Unicode Escape Converter

Type or paste your text, choose Encode or Decode, and copy the result. Encoding turns non-ASCII characters into backslash-u escapes; decoding turns escapes back into readable characters. The word counter can help with the next step once you have your output.

If a decoded string shows a lone half of an emoji, check that both of its escapes survived the copy — chat apps and spreadsheets sometimes drop one. For JSON work, decode the string value, not the whole object.

The result can be copied with the buttons above it, or shared and printed from the actions on the page. If you use the tool often, bookmark the page — the address never changes, and your last input is not saved, so a fresh visit always starts clean. That also means there is nothing to clear and nothing to log out of when you are done.

Everything on this page is free, with no account and no limit on how often you use it. Your text is processed in your browser and never sent to a server, so drafts, names, and private notes stay on your device. If the result looks wrong, check the input first — a stray space or a missing character is the cause far more often than the tool itself.

Frequently Asked Questions

It is a six-character code — backslash, u, and four hex digits — that stands for one Unicode character. \u00e9 stands for é, which is code point U+00E9. JSON, Java, and JavaScript all understand this form.

Emoji live outside the basic multilingual plane, above U+FFFF. JavaScript stores them as two 16-bit units called a surrogate pair, and each half gets its own \uXXXX escape.

No. Plain ASCII needs no escapes in JSON or Java, and escaping it only makes the file harder to read. Escape only the characters outside ASCII.

Yes. A JSON parser reads \u00e9 and é as the same character. The escape is just a way to write the character using only ASCII.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.