PDF Word Counter
PDF Word Counter
How to count words in a PDF
Add your PDF
Drag or click to choose. The tool extracts every page's text and computes word, character, sentence, line and reading-time statistics.
Read the summary
Top panel shows the totals across the document — words, characters with and without spaces, sentences, lines, Chinese/Japanese characters when there are any, and estimated reading time. Below that is a per-page table for granular analysis.
Export the breakdown
Click Download per-page CSV to save the table as a CSV file. Open in Excel, Sheets, Numbers, or any tool that reads CSV — useful for invoicing per-word translation work, academic word-count compliance, or content audit reports.
Word counting in PDFs — billable, gradable, audit-worthy
A word count from a PDF feeds more decisions than it looks: translators quote on it, journals and universities enforce limits with it, and content teams cost migrations by it. The count has to come from the PDF's text layer, which is not the same thing as the document the author typed, and that is where most of the disagreements between tools come from.
Why every tool gives a slightly different number
"Word" needs a rule. Is state-of-the-art one word or four? Is a bullet or a dash a word? Are page headers and footers counted? Different programs answer differently, so Word, Acrobat and this tool can give different totals for the same document. For anything billable, the defensible position is to name the tool and the rule and use them consistently. This tool's rule is below, in full.
A word count is only comparable with another made by the same rule. Write the rule down with the number.
What we fixed on 30 September 2026
Three things were wrong. Text pieces from pdf.js were joined with a space wherever the font changed, even in the middle of a word, so an italic letter or a bold phrase followed by a comma added words that were not there: on four pages of the ISO 32000 PDF standard the old count ran from 1% to 9% above Poppler's pdftotext. A Chinese sentence, written without spaces, counted as one word, and PDFs whose Chinese, Japanese or Korean fonts are not embedded lost that text altogether because the character maps pdf.js needs were never loaded. And the "Paragraphs" figure was always the number of pages, because each page's line breaks were removed before paragraphs were split on blank lines; it has been replaced by a line count, which the PDF actually records.
What this tool counts — and how
Words in space-separated scripts are runs of characters between spaces that contain at least one letter or digit, so a hyphenated compound is one word, a URL is one word, a number such as 3.5% or $1,234.56 is one word, and a lone dash or bullet is none. A word broken across two lines with a hyphen (work- at the end of one line, flow at the start of the next) counts once; justified and LaTeX-typeset PDFs do this every few lines. Ligatures such as fi and fl count as their letters, because pdf.js converts them. Chinese, Japanese, Thai, Lao, Khmer and Myanmar runs are split with your browser's own word segmenter (Intl.Segmenter, Unicode word-boundary rules with language dictionaries), and Chinese and Japanese characters are also counted on their own, because translators often quote those languages per character. Characters are counted as Unicode characters, with and without spaces. Sentences end at ., ! or ? followed by a space, or at 。!? — a deliberately simple rule that "Dr. Lee" will fool. Lines are the text lines pdf.js reports. Reading time is space-separated words divided by 238.
How we checked it against a known document
We printed a short text of known length from Chrome in a narrow justified column with automatic hyphenation, so six words were broken across lines, and with fi and fl ligatures and a Chinese sentence. The source has 39 space-separated words and 4 Chinese words. Until 4 November 2026 this page counted 6 too many from the PDF, one for every hyphenated line break; it now gives the source's 43. The PDF and its source are kept with the tool's tests and checked on every change. Characters are still counted as extracted, so a hyphen added at a line break is one extra character.
Reading speed, unspaced scripts and where a word breaks
The average silent reading rate for adults in English is 238 words per minute for non-fiction and 260 for fiction, from Marc Brysbaert's 2019 meta-analysis of 190 studies and 18,573 participants.
Chinese, Japanese and Thai are written without spaces between words, so a whitespace word counter sees a whole sentence as one "word". Korean does use spaces.
Where word boundaries are not marked, software finds them with dictionaries. Browsers expose this as Intl.Segmenter, which this page uses for those scripts.
Hyphenated compounds are the classic disagreement: whitespace rules make state-of-the-art one word, while Unicode's word-boundary rules split it at the hyphens.
A PDF records text as positioned pieces, not words or paragraphs. Where a piece ends mid-word — at a font change, say — a counter has to decide whether a space was meant; this one looks for a visible gap.
FAQ
-
No. pdf.js runs in your browser and the counting is plain JavaScript; your PDF is read and analysed in memory. In DevTools → Network you will see the page fetch pdf.js itself and, for some Chinese, Japanese or Korean PDFs, character-map files, all from this site. None of those requests carries your file or its text.
-
Because the rule differs, and because a PDF is not the Word file it came from — headers, footers and page numbers are all text in the PDF. Hyphenated line breaks are joined, so they do not add words. This tool counts by the rule described above; state that rule alongside any count you bill or submit.
-
The PDF almost certainly has no text layer — it is a scan, a picture of each page. There is nothing to count until the file has been through OCR (optical character recognition), for example Adobe Acrobat's text recognition or the free Tesseract. If the PDF opens in a viewer and you can select its text, but the count is still 0, please tell us: that is a bug.
-
Yes. Everything in the PDF's text layer is counted, including headers, footers, page numbers, footnotes and table cells. PDFs do not mark which text is a header, so for a body-only count, remove those from the source document or subtract them.
-
Yes. Chinese and Japanese text is split into words by your browser's segmenter, and the number of Chinese/Japanese characters is shown separately, since translation into or out of those languages is often priced per character. Korean is written with spaces and is counted like English. PDFs whose CJK fonts are not embedded now extract correctly too — until 30 September 2026 their text was dropped. Reading time is not estimated for these scripts, because the 238 wpm rate is an English figure.
-
It uses the naive rule: count runs of
.,!, or?followed by whitespace. Works well for most prose. Will mis-count when sentences end in abbreviations ("Dr. Lee said.") or contain mid-sentence dot-separated tokens (URLs, version numbers). Treat it as a rough indicator, not a contract metric. -
The limit is your browser's memory, since the whole file is read into it; counting itself is quick. Text extraction runs page by page, so a long document takes proportionally longer, and phones take longer than laptops.
Method & sources
How it computes
pdf.js text per page, lines rebuilt (a space only at a visible gap). Words: whitespace tokens with a letter or digit; a word broken at a line-end hyphen counts once; Chinese, Japanese, Thai, Lao, Khmer, Myanmar runs split by Intl.Segmenter. Reading time: whitespace words / 238 wpm (Brysbaert 2019). Pages with no text layer are named.
What this tool implements
- Hyphenated line breaks: a letter, a hyphen (ASCII, U+2010 or soft hyphen) at the end of a line and a letter starting the next line are one word. Characters are still counted as extracted, hyphen included. Across all 254,270 repo text samples swept old against new, only the word count changed, and only where text was wrapped at a hyphen.
- Ligatures: pdf.js 4.10.38 getTextContent normalises U+FB00-FB06 to their letters (normalizeUnicode, NFKC), measured on the fixture: "final flow" extracts as "final flow".
- Pages with no text layer inside a text PDF are now named in the status line ("Page 2 of 3 has no text layer"); until 2026-11-04 only a document with no words at all was flagged.
- Reading rate 238 wpm is Brysbaert's average for silent reading of English non-fiction (260 fiction; most adults 175-300), read from the preprint abstract. It is not applied to words found by segmenting unspaced scripts.
Sources
- Brysbaert M. How many words do we read per minute? A review and meta-analysis of reading rate. J Mem Lang. 2019;109:104047. https://doi.org/10.1016/j.jml.2019.104047 (abstract read from the PsyArXiv preprint, https://osf.io/xynwg/)
- Mozilla. PDF.js 4.10.38, src/shared/util.js normalizeUnicode() (Apache 2.0): https://github.com/mozilla/pdf.js/blob/v4.10.38/src/shared/util.js
- Mozilla. PDF.js: https://mozilla.github.io/pdf.js/
What can make this go out of date
- None at runtime: pdf.js and its character maps are self-hosted, and the file is read in the browser, never uploaded.
- Word segmentation for Chinese, Japanese, Thai, Lao, Khmer and Myanmar is the browser's Intl.Segmenter, so those counts can differ slightly between browsers and versions.