Tabwrench tools Small tools that run in your browser. No sign-up, no upload.
Tools / Text / Unicode / ASCII converter

Unicode and ASCII converter

Paste text to see each character's code point, escape sequence and UTF-8 bytes. Paste codes such as U+D55C, \uD55C or 72 101 108 to get the text back.

Runs in your browser. Nothing you paste leaves this page.
Input
Examples:

Code point, escape and bytes are three different things

Every character has one number, its code point, written U+ and hex digits. How that number is stored or typed depends on the context.

CharacterCode pointDecimalUTF-8 bytesJavaScript escapeHTML
AU+00416541\u0041A
éU+00E9233C3 A9\u00E9é
한U+D55C54620ED 95 9C\uD55C한
😀U+1F600128512F0 9F 98 80\uD83D\uDE00😀

ASCII is the first 128 code points. For those characters the code point, the decimal ASCII code and the single UTF-8 byte are the same number.

Why an emoji needs two \u escapes

JavaScript and Java strings use 16-bit units. Code points above U+FFFF do not fit in one unit, so they are written as a pair called surrogates: 😀 is \uD83D\uDE00. Modern JavaScript also accepts \u{1F600}. This page reads both forms.

Formats the page understands

  • U+0041, \u0041, \u{1F600}, \x41, 0x41
  • HTML entities A and A
  • A list of decimal codes such as 72 101 108 108 111. A single bare number is treated as text, since it is usually meant that way. Switch to “Codes → text” to force it.

Questions

Is Unicode the same as UTF-8?

No. Unicode assigns numbers to characters. UTF-8 is one way to store those numbers as bytes, using one to four bytes per character.

Why does one visible character show several rows?

Some characters are built from several code points: a flag is two, a family emoji can be seven, and an accented letter may be a base letter plus a combining mark.

Related tools