How to Count Words Online (Accurately, Including Vietnamese)
Count words, characters, sentences, and paragraphs correctly — including Vietnamese text, emoji, and messy spacing that trips up simpler word counters.
By QR Ivify Team
A word count requirement sounds simple until you're staring at an essay, a cover letter, or an SMS draft wondering whether the number your editor is showing is actually right. Most built-in word counts get tripped up by the same handful of things — extra spaces, blank lines, non-English text. Here's what an accurate count actually requires.
Why Word Counts Disagree With Each Other
Paste the same paragraph into three different tools and you can get three different numbers. The usual culprits:
- Whitespace handling — a naive counter that splits on single spaces overcounts when there are double spaces between words.
- Punctuation-only "words" — a counter that splits on any whitespace treats a lone
-or...on its own line as a word. - Non-English text — this is the big one. A counter built around
\w(a regex shorthand for "word character") only recognizes plain ASCII letters. Feed it Vietnamese — "Xin chào các bạn" — and depending on how it's built, it can undercount, overcount, or choke on the diacritics entirely.
QR Ivify's Word Counter counts using Unicode letter and number categories rather than ASCII shorthand, so Vietnamese, accented text, and other non-English scripts count correctly — the same way a native counter would.
What Gets Counted, and What Doesn't
- Words: runs of letters and numbers. Multiple spaces, tabs, and line breaks between words are ignored — they don't inflate the count.
- Characters: every visual character, with and without spaces shown separately.
- Sentences: counted by runs of text ending in
. ! ?— a practical heuristic, not a grammar engine (see the limitation below). - Paragraphs: blocks of text separated by at least one blank line.
- Lines: every line break, including blank ones.
Step by Step
- Open the Word Counter.
- Paste or type your text into the box.
- Watch the six stats update as you type — no button to click.
- Copy the text elsewhere when you're done, or Clear to start over.
Nothing is uploaded — counting happens entirely in your browser as you type.
A Worked Example
Hello world
This is
a test.
This produces: 6 words, 3 sentences worth of punctuation logic aside (just the one period here counts as one sentence), 2 paragraphs (the blank line splits it), and 4 lines. The double space between "Hello" and "world" doesn't create a phantom third word — that's the whole point of counting by content, not by splitting on whitespace.
The One Real Limitation: Sentence Counting
Sentence counting here — like in virtually every word-counter tool — works by finding runs of text that end in ., !, or ?. That heuristic can't tell "Mr. Smith arrived." (one sentence) from two separate sentences, because it has no idea "Mr." is an abbreviation, not a sentence end. For a rough estimate this is fine; for anything requiring an exact sentence count, expect it to be close, not perfect.
Frequently Asked Questions
Does this count Vietnamese words correctly? Yes — word detection recognizes Vietnamese diacritics and other non-English letters as real word characters, not just plain ASCII.
Will extra spaces or blank lines inflate my word count? No — any amount of whitespace between words is ignored; only the words themselves are counted.
Is there a word count limit? No fixed limit — counting stays fast even on long documents since it's a single pass over the text, not repeated re-scanning.
Does this upload my text anywhere? No. Counting happens entirely in your browser — nothing is sent to a server.
Can I count just characters instead? Yes — see the Character Counter if characters (with or without spaces) are what you actually need to track.
Try It
Need an accurate word count right now — including Vietnamese or other non-English text? QR Ivify's free Word Counter updates in real time as you type. If you're cleaning up messy spacing before counting, try Text Cleaner first.
Related articles
How to Change Text Case Online — UPPERCASE, Title Case & More
Convert text between UPPERCASE, lowercase, Title Case, Sentence case, and more, without losing line breaks — and what actually separates Title Case from Capitalize Each Word.
How to Clean Up Messy Text (Extra Spaces, Blank Lines, Tabs)
Fix text that came through with irregular spacing, blank lines, or tabs — from pasting out of a PDF, a webpage, or a spreadsheet — with cleanup options you control individually.
How to Compare Two Texts and See What Changed
Compare two versions of a document, email, or config file line by line and see exactly what was added or removed — the algorithm behind it, explained simply.