Character Counter
Count characters with real Unicode semantics: code points, grapheme clusters, and UTF-16 units side by side, plus letters, whitespace, lines, words, and live keyword density.
- 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
Keyword Density
Keyword | # | % |
|---|
No text to analyze — type or paste text above.
Characters counts Unicode code points. Grapheme clusters count perceived characters, and UTF-16 units match legacy string length.
Selection counting: Selecting text in the editor computes counts and keyword density on the selected text only. Clicking inside the editor to clear the selection or clicking Count whole text returns to the whole text.
Keyword density: Use ×1 for single words, ×2 for two-word phrases, and ×3 for three-word phrases. Percentage reflects each keyword's share of the listed keywords.
Auto-save: Text is automatically saved to local storage between visits.
Paste, load, or drop text
Type or paste into the editor, drag and drop a .txt file, or use the toolbar shortcuts.
Read live counts & keyword density
Characters and whitespace-free totals stand out alongside graphemes, words, lines, and x1/x2/x3 keyword density.
Copy, download, or share
Copy count summaries, download your text with a custom file name, or share links across platforms.
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 legacy text.length values.
- 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 does selection counting work?
- When you select any portion of text in the editor, character counts and keyword density update immediately to reflect only the selected text. Clicking inside the editor to clear the selection or clicking Count whole text restores whole-document counts.
- What is keyword density?
- Keyword density shows how often individual words (x1), two-word phrases (x2), and three-word phrases (x3) appear in your text as a share of the listed keywords, with optional filters for numbers, single letters, and common words.
- 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 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 saved to your browser local storage for convenience and is never uploaded to a remote server.