Full text statistics breakdown

Paste any text and get one block with every count: characters with and without spaces, words, sentences, paragraphs, lines, average word length, and (optionally) Shannon entropy. Each row is toggleable in the action bar so you only see the metrics you want. The transform runs in your browser; nothing uploads.

Input
Line 1:1 LF cloud_done Saved locally
Result Text Statistics
0 lines 0 chars

Every common text metric in one report

The tool runs every count in parallel and emits the rows you ask for. Tokenizers: characters use String.length (and \s-strip for the no-spaces variant); words use \S+ (any run of non-whitespace); sentences use [^.!?]+[.!?]+; paragraphs split on \n\n+ and drop empties; lines split on \r?\n. Average word length divides characters-without-spaces by word count.

Seven row toggles cover the main metrics: Characters, Words, Sentences, Paragraphs, Lines, Avg Length, and Entropy. Characters emits two rows (with and without spaces). Entropy appends a Shannon entropy figure in bits per character; it is off by default because it is more expensive than the other rows.

Each metric has a standalone tool: character counter, word counter, sentence counter, paragraph counter, line counter, average word length, and text entropy. Use this one when you want all of them at once.

How to use full text statistics breakdown

  1. 1Paste or type your text into the input panel on the left.
  2. 2The full statistics block appears in the output panel as you type.
  3. 3Toggle individual rows off in the action bar to keep the report short.
  4. 4Turn on Entropy if you want a Shannon-entropy row appended.
  5. 5Click Copy in the output header to copy the report.

Keyboard shortcuts

Drive TextResult without touching the mouse.

Shortcut Action
Ctrl FOpen the find & replace panel inside the input Plus
Ctrl ZUndo the last input change
Ctrl Shift ZRedo
Ctrl Shift EnterToggle fullscreen focus on the editor Plus
EscClose find & replace, or exit fullscreen
Ctrl KOpen the command palette to jump to any tool Plus
Ctrl SSave current workflow draft Plus
Ctrl PRun a saved workflow Plus

What this tool actually does

Seven toggleable rows

Each toggle controls one row of the output. Characters (default on) emits two rows (with and without spaces). Words, Sentences, Paragraphs, Lines, Avg Length default on. Entropy defaults off.

Tokenizers used here

Words: \S+ (any non-whitespace run). Sentences: [^.!?]+[.!?]+. Paragraphs: split on \n\n+, drop empties. Lines: split on \r?\n. Characters: String.length for with-spaces, plus \s-strip for the no-spaces total.

Average word length is whole-word, no spaces

The Avg Length row divides characters-without-spaces by word count and reports one decimal place: Average word length: 4.3. Empty input reports 0.

Shannon entropy in bits per character

When Entropy is on, the tool computes -sum(p log2 p) over the empirical character distribution and appends Shannon entropy: H bits/char at three decimals. English prose typically lands around 4.0 to 4.5 bits per character.

Single-block plain-text output

Every row is one line. The block is plain text, no markdown, no headers, easy to paste into a doc or spreadsheet. Empty input still emits all enabled rows with zeros.

Worked example

All defaults: characters with and without spaces, words, sentences, paragraphs, lines, and average word length. Turn on Entropy in the action bar and a final Shannon entropy: ... row is appended.

Input
Hello, world!
This is a second sentence. And a third.

A fresh paragraph follows here.
Output
Characters (with spaces): 89
Characters (no spaces): 73
Words: 16
Sentences: 4
Paragraphs: 2
Lines: 4
Average word length: 4.6

Settings reference

Option Effect on output
Characters (default on) Two rows: with-spaces and no-spaces totals.
Words (default on) One row: Words: N.
Sentences (default on) One row: Sentences: N.
Paragraphs (default on) One row: Paragraphs: N.
Lines (default on) One row: Lines: N.
Avg Length (default on) One row: Average word length: F (1 decimal).
Entropy (default off) One row: Shannon entropy: H bits/char (3 decimals).

FAQ

How is a word counted here?
Any run of non-whitespace via \S+. This is more permissive than the \w+ tokenizer in word counter: URLs and tokens with mixed punctuation count as a single word.
How are paragraphs detected?
By splitting on two or more consecutive newlines (\n\n+) and dropping empty pieces. A single newline does not start a new paragraph; a blank line does.
What does Shannon entropy tell me?
It is a measure of information density in bits per character. English prose averages 4.0 to 4.5 bits per character. Higher values indicate more variety in the character distribution; lower values indicate repetition.
Can I keep just the rows I want?
Yes. Each metric has its own toggle in the action bar. Turn off Lines if you do not need it, turn on Entropy only when you want it. The report shrinks accordingly.
Is the input sent anywhere?
No. Every count runs in your browser. Nothing uploads, nothing is logged.