Plain text
Try: Hello🌏 \u0048\u0069 U+0048 U+0069 Hi 48 69
The input format is detected automatically. If the guess is wrong, pick the right one from the dropdown. Everything runs locally in your browser.

Character details

Why use this online Unicode converter?

Seven encodings at once

Raw characters, u escapes, U+ code points, decimal values, HTML entities, UTF-8 bytes and UTF-16 code units appear together, so you stop hopping between sites.

Works in both directions

Encode and decode. Paste a u escape string, an HTML entity or a UTF-8 byte sequence and get readable text back, which is exactly what debugging mojibake needs.

Emoji never split apart

The tool walks code points instead of bytes, so a character like 😀 is handled as one unit rather than being torn into two broken halves.

Per-character detail table

Every character gets its own row, showing how many bytes it costs and which Unicode block it belongs to. Locating a bloated string becomes trivial.

Automatic format detection

Plain text, u escapes, U+ code points, HTML entities, UTF-8 hex and decimal lists are all recognised on paste, and you can override the guess anytime.

Local only, never uploaded

Conversion happens in your browser. Nothing you type is sent to a server, so internal data is safe to inspect.

How to use the Unicode converter in four steps

1

Paste your content

Text, emoji, u escapes, U+ code points, HTML entities and UTF-8 bytes all work. The chips below the box are quick samples.

2

Confirm the format

The small chip under the box shows what was detected. If it guessed wrong, choose the correct format from the dropdown.

3

Read the output

The top row counts code points, UTF-16 code units, UTF-8 bytes and blocks. Seven panels follow, then the per-character table.

4

Copy what you need

Use the copy button on any panel. Clicking the code point cell of a table row copies just that character's U+ value.

Common uses for a Unicode converter

Debugging mojibake

When a page shows garbled text, compare code points against UTF-8 bytes to find which step encoded wrongly

Sizing database columns

How many Chinese characters or emoji fit in VARCHAR(20)? The UTF-8 byte count answers it

Character limit checks

SMS, social posts and validators often count UTF-16 code units, where an emoji costs two

Writing escapes in code

Copy a ready-made u escape when a special or invisible character must go into source code

Embedding symbols in HTML

HTML entities are safer than literal symbols inside templates and email markup

Learning text encoding

Watch real characters show the difference between code points, code units and bytes

Unicode essentials explained

Code point, code unit and byte are not the same thing

A code point is a character's number in the Unicode character set, written U+XXXX. It is abstract and independent of storage. A code unit is the smallest unit a particular encoding scheme uses: UTF-16 uses 16-bit units, UTF-8 uses 8-bit units, which are bytes. A byte is the actual unit of storage and transfer. So one Chinese character has a single code point, occupies one UTF-16 code unit (two bytes) and three UTF-8 bytes. Mixing these three up is the usual reason length calculations go wrong.

Why Chinese takes 3 bytes and emoji take 4

UTF-8 is variable length and the byte count follows the code point: U+0000–U+007F use 1 byte, which is exactly ASCII, U+0080–U+07FF use 2 bytes, U+0800–U+FFFF use 3 bytes and U+10000–U+10FFFF use 4 bytes. Common CJK ideographs live around U+4E00–U+9FFF, which lands in the 3-byte band. Nearly all emoji are above U+1F300, past the 3-byte ceiling, so they need 4 bytes. This is also why UTF-8 is compact for English and more expensive for CJK text.

What a surrogate pair is and why ''.length is 2

A UTF-16 code unit is 16 bits wide and can only reach U+FFFF. To represent anything higher, the standard reserves 0xD800–0xDFFF and combines two 16-bit code units into one code point: a high surrogate (0xD800–0xDBFF) plus a low surrogate (0xDC00–0xDFFF). The emoji 😀 (U+1F600) is written D83D DE00 in UTF-16. JavaScript string length counts code units, so '😀'.length returns 2 even though it is a single character. Use Array.from(str) or for...of to iterate real characters.

Why some emoji are made of several code points

Composite emoji join several base emoji with the zero width joiner, U+200D. The family emoji 👨‍👩‍👧 is man U+1F468, ZWJ, woman U+1F469, ZWJ and girl U+1F467, which is 5 code points, 8 UTF-16 code units and 18 UTF-8 bytes, yet renders as one picture. Other emoji use the variation selector U+FE0F to force colour presentation, as in ❤️ which is U+2764 plus U+FE0F. One glyph therefore does not equal one character, which matters for counters and truncation.

u escape, HTML entity or percent encoding?

All three rewrite non-ASCII characters as plain ASCII, but each belongs to a different parser. A u escape such as u4F60 is a programming language string literal, resolved by the compiler or interpreter in JavaScript, Java or C source. An HTML entity such as 你 or 你 is resolved by the browser when parsing HTML. A third option, percent encoding such as %E4%BD%A0, is resolved when a URL is parsed. Using the wrong layer is why an escape sometimes appears not to work.

Why UTF-8 stays compatible with ASCII

UTF-8 maps U+0000–U+007F directly to the single bytes 0x00–0x7F, identical to ASCII. Multi-byte sequences never collide with that range either: the lead byte is 0xC0 or above and continuation bytes are fixed inside 0x80–0xBF. Any ASCII byte inside a UTF-8 stream is therefore a standalone ASCII character and cannot be absorbed into a neighbouring sequence. Old software reading the English parts of a UTF-8 file keeps working, which is a big reason UTF-8 became the default encoding of the web.

Common character encoding reference

Char Code point Decimal UTF-8 bytes UTF-16 units HTML entity
AU+004165410041A
aU+006197610061a
0U+0030483000300
spaceU+002032200020 
©U+00A9169C2 A900A9©
€U+20AC8364E2 82 AC20AC€
你U+4F6020320E4 BD A04F60你
好U+597D22909E5 A5 BD597D好
中U+4E2D20013E4 B8 AD4E2D中
文U+658725991E6 96 876587文
,U+FF0C65292EF BC 8CFF0C,
。U+300212290E3 80 823002。
❤U+276410084E2 9D A42764❤
😀U+1F600128512F0 9F 98 80D83D DE00😀

Unicode converter FAQ

Q: How do I use the Unicode converter?
A: Paste the characters you want to inspect into the input box. Seven encoding panels appear immediately, followed by a per-character table showing the code point, decimal value, UTF-8 bytes, UTF-16 code units, HTML entity and Unicode block of every character. Click the copy button on any panel to grab that format.
Q: Why does one emoji take 4 bytes in UTF-8?
A: UTF-8 is variable length and the byte count depends on the code point: U+0000 to U+007F use 1 byte, U+0080 to U+07FF use 2 bytes, U+0800 to U+FFFF use 3 bytes and anything above U+10000 uses 4 bytes. Almost all emoji sit above U+1F300, which is past the 3-byte ceiling of U+FFFF, so they always take 4 bytes.
Q: Why does JavaScript report a different string length?
A: JavaScript counts UTF-16 code units, not code points. Characters inside the BMP, such as Chinese characters and common symbols, occupy one code unit, while characters above U+10000 need a surrogate pair and therefore count as two. That is why the length of a single emoji string returns 2. The UTF-16 column in this tool is exactly the JavaScript length.
Q: What is the difference between a u escape and an HTML entity?
A: Both rewrite a character as plain ASCII, but they belong to different parsers. A u escape is a string literal syntax understood by compilers and interpreters in JavaScript, Java or C. An HTML entity is understood by browsers when parsing HTML or XML. The character for Chinese you is written u4F60 as an escape and 你 as an HTML entity.
Q: The input shows nothing or renders as a box. What should I do?
A: First check whether the format was misdetected. Plain text containing many hexadecimal letters can be mistaken for a UTF-8 byte string, so pick Plain text from the dropdown in the top right. If the character renders as a box, your system font simply lacks a glyph for it, but the code point data is still correct.
Q: Does it support traditional characters, rare characters and extension blocks?
A: Yes. The tool works on code points, so any character you can type into the box can be inspected, including CJK Extension A and B. Extension B characters take 4 bytes in UTF-8 and 2 code units in UTF-16.
Q: Is my input stored anywhere?
A: No. All encoding and decoding happens inside your browser. Nothing is sent to a server, logged or reused, and the content disappears when you close the page.