Skip to content

Character Counter

Count visible characters, characters excluding literal spaces, words, and logical lines with shared Unicode-aware definitions.

Counting runs only in this browser. Text is not uploaded.

Characters including spaces
0
Characters excluding literal spaces
0
Words
0
Lines
0

Input size: 0 B.

Advanced metrics and definitions
Grapheme clusters
0

Visible-character units used by the primary character count.

Unicode code points
0
UTF-16 code units
0
UTF-8 bytes
0
Characters excluding all Unicode whitespace
0
Nonblank lines
0

Visible characters use grapheme clusters. A grapheme can contain several code points; a code point can use two UTF-16 code units; and UTF-8 may use several bytes. “Excluding spaces” removes only U+0020, while the separate whitespace metric removes Unicode whitespace.

Visible-character definition

The primary character count uses grapheme clusters. Excluding spaces removes only ordinary U+0020 spaces; excluding all Unicode whitespace is a separate advanced metric.

No separate character-without-spaces route is justified by the current audit. Processing remains browser-local.

Using this tool

Characters with and without spaces

Compare visible characters, literal-space exclusions, words, lines, and UTF-8 bytes from the same input.

Input and output

Example: `A B` has three visible characters and two characters when only literal spaces are excluded.

Important behaviour

Visible characters are grapheme clusters, so an emoji sequence can count as one character while using several code points and bytes.

Keep in mind

Tabs, line breaks, and non-breaking spaces are not silently treated as literal spaces.

Conversion is performed in the browser. Copying or downloading happens only when you choose those actions.

🔗 Related tools

Other Helpful Tools

A few related projects that pair well with this tool. Fast, focused, and privacy-friendly.