← Hashito System Home 日本語 Tools Blog Posters
Text input

        
      
Per-character breakdown
0
Characters (code points)
0
UTF-16 units
0
UTF-8 bytes
0
Largest character in bytes
CharacterCode pointUTF-8 bytesUTF-16
In UTF-8, ASCII characters (letters, digits and punctuation) take one byte, most CJK characters such as Japanese kana and kanji take three, and many emoji take four. So when a system limits length in bytes rather than characters — a database column, an API field — non-ASCII text can consume three times or more the space the visible character count suggests.

Frequently asked questions (FAQ)

Can I use this to track down garbled text (mojibake)?

Yes. Garbled text usually happens when bytes written in one encoding are read as another. By checking the UTF-8 bytes and code point of each character here, you can see how many bytes every character really takes and pinpoint where the data stops matching your expectations.

How are surrogate pairs and emoji displayed?

Characters outside the BMP, such as most emoji, are a single code point but are stored as two units (a surrogate pair) in a JavaScript string. This tool lists one row per code point and also shows the UTF-16 unit count, so you can see the difference between the two at a glance.

Is the text I enter sent to a server?

No. Encoding the text into bytes and rendering the result happen entirely in your browser using the JavaScript TextEncoder API. The text you enter is never uploaded to a server.