Character Counter
Count characters with real Unicode semantics: code points, grapheme clusters, and UTF-16 units side by side, plus letters, digits, symbols, whitespace, lines, and words — updating live as you type or paste.
- Grapheme clusters
- 0 — user-perceived characters
- UTF-16 units
- 0 — legacy text.length value
- Letters
- 0 — letters + combining marks
- Digits
- 0 — decimal digits
- Punctuation & symbols
- 0 — includes emoji as symbols
- Whitespace
- 0 — spaces, breaks, NBSP
- Lines
- 0 — CRLF counts once
- Words
- 0 — browser word rules
Characters counts Unicode code points. A family emoji built from two people and a joiner. is 5 code points but 1 grapheme cluster and 8 UTF-16 units — the three counters above differ on purpose.
Lines split at CRLF, CR, or LF: Windows CRLF counts as one break even though it is two code points, and text ending in a newline counts a trailing empty line.
Words use your browser's built-in Unicode segmentation, so CJK and punctuation boundaries follow its ICU rules and can vary slightly across browsers. Punctuation includes symbols such as emoji.
Counting runs entirely in this browser tab — the text is not uploaded and nothing is saved by this tool.
Paste or load text
Type or paste into the input, or load a local .txt file — the counting happens in this browser tab.
Read the live counts
Character and no-space totals stand out; graphemes, UTF-16 units, letters, digits, symbols, whitespace, lines, and words sit right below.
Copy or download
Copy a summary of all counts, or download your input back as a .txt file.
Counting semantics
- Characters, graphemes, or UTF-16 units?
- Characters counts Unicode code points — the honest default. Grapheme clusters count what readers perceive as one character: a family emoji is 5 code points but 1 cluster. UTF-16 units matches the legacy text.length you may see in older tools.
- What counts as whitespace?
- Spaces, tabs, and line breaks, including non-breaking space (U+00A0) and ideographic space (U+3000). Characters (no spaces) subtracts exactly those.
- How are lines counted?
- At every CRLF, CR, or LF break. A Windows CRLF is one break even though it is two code points, and text ending in a newline gets a trailing empty line counted.
- How are words split?
- With your browser's built-in ICU word segmentation, so CJK text splits by dictionary rules and results can vary slightly across browsers. Punctuation counts include symbols, so emoji are counted as symbols.
Privacy: this character counter runs entirely in your browser tab. Your text is not uploaded, saved, or shared by this tool.