Count the characters in a text

Paste or type a text and the counts appear at once: characters with and without spaces, full- and half-width, words, lines, paragraphs and the size in UTF-8 and Shift_JIS bytes. For a post, an application form or a translation with a character limit. Nothing is sent to an outside server or stored.

0 characters, 0 without spaces

Characters
0Spaces and line breaks included
Without spaces
0No spaces, tabs or line breaks
Full-width
0
Half-width
0
Words
0
Lines
0
Paragraphs
0
UTF-8
0 bytes
Shift_JIS
0 bytes

The text stays on your device: it is neither sent to an outside server nor stored.

How to use

  1. Paste or type a text into the box. The counts update as you type; a long text is counted a moment after you stop.
  2. Read the counts under the box: characters with and without spaces, full- and half-width, words, lines, paragraphs and the size in bytes.
  3. Press “Clear” to start again with another text. Nothing is sent or stored.

Frequently asked questions

What counts as one character?

What you see as one: an emoji with a skin tone, a kana with a combining sound mark or a kanji with a variation selector is one character, even though it is several code points (and several bytes). Spaces, tabs and full-width spaces count as characters; line breaks too, with a Windows line break (CR LF) as one. “Without spaces” leaves out spaces, tabs and line breaks. Lines are counted as a text editor shows them, with no extra line after a final line break, and paragraphs are runs of lines separated by a blank line. Words are counted by their spaces, and by dictionary for Japanese and Chinese, so take the word count of those as a guide.

What are full-width and half-width characters?

Full-width characters take a whole square in Japanese, Chinese and Korean typesetting: kanji, kana, hangul, full-width letters and digits (A, 1), full-width punctuation and symbols such as ※ and ①, and emoji. Half-width ones take half of it: ASCII letters, digits and symbols, and half-width katakana (アイウ). The split follows Unicode's East Asian Width; characters it calls ambiguous (Greek and Cyrillic letters, ±, °) are counted as full-width, as Japanese fonts show them. The two add up to the count without spaces.

Why do the UTF-8 and Shift_JIS sizes differ, and what is “not in Shift_JIS”?

UTF-8 writes ASCII in 1 byte, most kanji and kana in 3 and emoji in 4; Shift_JIS writes ASCII and half-width katakana in 1 byte and everything else in 2. The sizes are what a text file saved in each encoding takes (without a byte-order mark), with line breaks as typed here (LF, 1 byte). Shift_JIS (the Windows version, Windows-31J) has no emoji, hangul, many rare kanji or accented letters: those are counted as “not in Shift_JIS”, one for each character as you see it, and the size counts 1 byte, the “?” a converter puts in, for each code point it cannot write (a flag emoji is one character and 2 bytes).

Is the text I paste sent anywhere?

No. The counting runs in your browser and the text stays on this page: it is neither sent to a server nor stored, and it is gone when you close or reload the page. The site records only that the tool was used, not what was typed.

Are my files uploaded to an outside server?

No. Everything runs in your browser, so your files never leave your device. The page only downloads the tool's own code when you add the first file.

Related tools