Word Counter

Paste any text to instantly count its words, characters, and lines — no server, no sign-up.

Result

About this tool

The Word Counter counts words, characters, and lines in any block of text. Paste an essay, code snippet, message, or anything else — the result is instant.

Words are defined as contiguous non-whitespace sequences. Characters are Unicode scalar values (every letter, digit, space, emoji, or punctuation mark). Lines follow Rust's str::lines() convention: a trailing newline does not add an extra empty line.

Everything runs in your browser via WebAssembly — your text is never sent to a server.

FAQ

What exactly counts as a "word"?

Any contiguous run of non-whitespace characters. So state-of-the-art and don't each count as one word, 3.14 is one word, and punctuation stuck to a word (hello,) doesn't add extra words. This matches what wc -w does, and can differ slightly from word processors that split on hyphens.

Does an emoji count as one character?

Characters are counted as Unicode scalar values. A simple emoji like 🎉 is one; composed emoji — skin-tone modifiers, flags, or family sequences joined with zero-width joiners — are several scalar values, so they count as more than one. That's also why the count can differ from a tool that counts UTF-8 bytes.

Why doesn't a trailing newline add a line?

Line counting follows Rust's str::lines() convention: lines are the segments separated by newlines, so "a\nb\n" is 2 lines, not 3. An entirely empty input has 0 lines.

Is there a length limit, and is my text private?

There's no fixed cap — even very long documents count instantly, since the whole computation is a single pass running locally in WebAssembly. Nothing you paste is uploaded anywhere.

Developer & Automation Access

Run it from the terminal

Same engine as this page, headless — via the gizza CLI:

gizza tool word-count "Paste text…"

New to the CLI? Get gizza →

Open it by URL

Pre-fill and auto-run this tool with query parameters — the names match the API/CLI:

https://gizza.ai/tools/word-count/?text=Paste%20text%E2%80%A6

Machine-readable descriptor: tool.json — title + parameters JSON Schema for agents.