Unicode Converter

Turn text into Unicode code points and escapes, and back.

Direction
Format

Runs on your device. Nothing to upload.

Questions

Why does an emoji become two \u escapes in JavaScript?

JavaScript strings and JSON store text as UTF-16, where characters beyond U+FFFF (most emoji) take two units, called a surrogate pair: 😀 is \uD83D\uDE00. Modern JavaScript also accepts \u{1F600}.

Which escapes can be decoded?

U+ code points, \u and \u{…} (JavaScript and JSON), \U (Python), and HTML entities like 😀, in any mix. CSS escapes and UTF-8 bytes are decoded when you choose that format, since they could be ordinary text.

What is the character table for?

It lists each character with its code point, UTF-8 and UTF-16 codes and kind. It reveals look-alike and invisible characters, like a zero-width space or a Cyrillic “а” posing as a Latin “a”.

Is it free? Do I need an account?

It is free to use and there is nothing to sign up for. There are no watermarks and no daily limits.

Missing something, or not working as it should? Tell us