Karakuri
Tool directory

Character counter

Paste text to count graphemes, lines and UTF-8 bytes. Line breaks in the text box count as LF.

Visible characters
0
Lines
0
UTF-8 bytes
0

How to use

Paste a draft or edit it in the text box. All three counts update as you type. For a form with a character limit, check how that form counts characters. For an API with a UTF-8 size limit, use the byte count.

How many characters is an emoji?

中😀 has 2 visible characters, 1 line and 7 UTF-8 bytes. The family emoji 👨‍👩‍👧‍👦 contains several code points but forms one grapheme cluster. Type A and press Enter once for 2 characters, 2 lines and 2 bytes, including the trailing empty line.

Spaces and line breaks

Spaces count as characters. The text box converts pasted line endings to LF, so a Windows CRLF occupies one byte here. A final line break adds an empty line. Clearing the field resets all three counts to zero.

Your input is processed in your browser.

Updated: