Every character you type is stored as a number called a code point. This unicode character lookup tool takes any text you paste and lists each distinct character with its code point (U+XXXX), its UTF-8 and UTF-16 bytes, ready-to-paste escapes for HTML, JavaScript and CSS, its general category and the Unicode block it belongs to. You can also work the other way and type code points to see the characters.
What the unicode character lookup shows
Paste text such as café €5 😀 and press Look up. Each unique character gets one row, in the order it first appears, with a count of how many times it occurs. The columns are:
- Code point: written as U+ followed by at least four hex digits, for example U+20AC for the euro sign.
- Character: the character itself. Control characters, spaces and other invisible ones show an empty-set mark so you can see they are there, and combining marks are drawn on a dotted circle.
- UTF-8 and UTF-16: the bytes or 16-bit units, in hexadecimal.
- Escapes: the numeric HTML entity in hex and decimal, the JavaScript escape and the CSS escape.
- Category and block: explained below.
- Count: how many times the character appears in your text.
Code points, UTF-8 and UTF-16
A code point is simply the number Unicode assigns to a character. Encodings decide how that number is stored as bytes. UTF-8 uses one byte for U+0000 to U+007F, two bytes up to U+07FF, three bytes up to U+FFFF and four bytes above that. [3] The euro sign U+20AC falls in the three-byte range and is stored as E2 82 AC. [3]
UTF-16 stores most characters as one 16-bit unit, but characters above U+FFFF need a surrogate pair. You subtract 0x10000 from the code point, add the top ten bits to 0xD800 for the high surrogate and the low ten bits to 0xDC00 for the low surrogate. The emoji U+1F600 becomes D83D DE00. [4] This is why a single emoji can count as two in JavaScript's string length, and why the tool's count works on whole code points, not on 16-bit units.
Escapes for HTML, JavaScript and CSS
The Escapes column gives the forms you are most likely to need. In HTML, € and € both produce the euro sign. In JavaScript a code point up to U+FFFF is written \u20AC; larger ones use the braced form \u{1F600}, and the tool also shows the equivalent surrogate pair. In CSS the escape is a backslash followed by the hex value, for example \20AC. These are plain text escapes, so they work in source files that must stay ASCII.
General category
Every code point has a general category, a two-letter value that classifies it, such as Lu for an uppercase letter, Nd for a decimal digit or Sc for a currency symbol. The values are grouped into letters, marks, numbers, punctuation, symbols, separators and other. [2] The tool works the category out with the browser's own Unicode property support, so it matches what your regular expressions see when you use the \p{...} syntax.
Here are a few of the categories you will meet most often:
| Category | Meaning | Example |
|---|---|---|
| Lu | Uppercase letter | A |
| Ll | Lowercase letter | é |
| Nd | Decimal digit | 7 |
| Zs | Space separator | space |
| Sc | Currency symbol | € |
| So | Other symbol | 😀 |
| Cc | Control | line feed |
Unicode blocks
A block is a named, contiguous range of code points, such as Basic Latin (U+0000 to U+007F) or Currency Symbols. Blocks do not overlap, and a code point that is in none of them is reported as having no block. [2] The block table in this tool comes from the Unicode Character Database file Blocks.txt, version 18.0.0. [1] A block name tells you roughly where a character lives, but it is not the same as the writing system: many scripts have characters scattered across several blocks.
Looking up by code point
Switch to Code point mode when you have a number and want to know the character. You may type U+1F600, 0x1F600, \u{1F600}, 😀 or 😀, or just bare hex such as 20AC. Separate several values with spaces or commas. Anything above U+10FFFF is rejected, because Unicode ends there.
What this tool does not do
It does not show character names. A complete list of names is a large data file, and shipping it would slow the page down for every visitor, so we left names out rather than guess. Use the block and category to narrow a character down, or search the Unicode Character Database for the name. The tool also looks at code points individually: a flag emoji or an accented letter written as a base letter plus a combining mark appears as several rows, because that is how it is stored.
Common uses
- Finding the invisible character that breaks a string comparison, such as a zero width space or a non-breaking space.
- Getting the exact bytes of a character when debugging encoding problems.
- Writing an ASCII-only source file by turning accented letters into escapes.
- Checking which block or category a symbol belongs to before using it in a regular expression.
- Learning how UTF-8 and UTF-16 differ with real examples.
Everything is worked out in your browser from the text you paste. Nothing is uploaded, and the page works offline once loaded.
What next
Use this often? Add Unicode Char to your Home screen.
Frequently asked questions
What does this unicode character lookup show?
For each distinct character in your text it shows the code point, UTF-8 and UTF-16 values, HTML, JavaScript and CSS escapes, the general category, the Unicode block and how many times it appears.
How do I find a character from its code point?
Switch to Code points mode and type values such as U+20AC, 0x1F600 or bare hex like 20AC. Separate several with spaces or commas.
Why does an emoji have two UTF-16 units?
Characters above U+FFFF do not fit in 16 bits, so UTF-16 stores them as a surrogate pair of two units. U+1F600 is D83D DE00.
Does the tool show character names?
No. Names need a large data file, so we leave them out. The block and category help you identify a character instead.
Why do some characters show an empty-set mark?
Control characters, spaces and other invisible characters have nothing to draw, so a mark stands in for them. Their code point and bytes are still listed.
Is my text sent to a server?
No. Everything is worked out in your browser.
Sources
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.