What is the text layer of a PDF?
The text layer is the text a PDF actually stores. Its pages are drawn from font glyphs placed at exact positions, and when the file maps those glyphs to Unicode characters, a viewer can select, search and copy the text and a word counter can read it; files exported from a word processor or LaTeX normally have one. A scan or a photo saved as PDF holds only a picture of the text, so it has no words to count until OCR adds a text layer, and a font embedded without a Unicode map yields text that copies as garbage, which OCR of the rendered page can recover.
How to use PDF Word Counter & Text Statistics
- Add a PDF: drop it on the box or click “Choose file”. If it is password-protected, type the password in its row.
- To count part of the document, click pages in the thumbnail grid or type them in Pages, for example 2-12 or 8-; leave it empty to count every page.
- Optionally change the reading speed, tick “Leave out running headers, footers and page numbers”, or tick “Also read pages without text using OCR” and pick the language of the text.
- Click “Count words” and follow the progress bar; Cancel stops the run.
- Read the verdict, the tiles and the page-by-page table, check the status of any flagged page, then copy the results or download the CSV tables or the JSON report.
PDF Word Counter & Text Statistics features
- Totals and a page-by-page table: words, characters with and without spaces, sentences and a measured status for every page
- Unique words, paragraphs, lines, average word and sentence length, and the words in each script: Latin, Arabic, Devanagari, Chinese/Japanese/Korean, Cyrillic and numbers
- Reading time at the speed you set (50 to 1,000 words per minute, 200 by default) and speaking time at 130 words per minute
- The 20 most frequent words with their count and share, leaving out common function words such as the, في and का
- Scanned, blank and unreadable pages told apart and named, with an optional OCR pass that reads the pages without text in your browser
- Running headers, footers and page numbers detected, and left out of the count with one tick
- Copy the results or a table, download either table as CSV and the full report as JSON — the PDF itself never leaves your browser
Inputs and outputs
Inputs
- One PDF, up to 250 MB on a computer or 60 MB on a phone. A password-protected file asks for its password in its row; a file whose author only restricted copying or printing is counted without the owner password.
- Pages (optional): click thumbnails in the grid or type 1-3, 5, 8- (to the end), even, odd or all; Arabic-Indic and Devanagari digits are read too. Empty means every page.
- Reading speed, in words per minute: 200 by default, from 50 to 1,000; a value outside that range is set to the nearer limit.
- “Leave out running headers, footers and page numbers”: off by default.
- “Also read pages without text using OCR”: off by default. Ticked, it shows “Language of the text”, preset from the page language (English; Arabic + English on Arabic pages; Hindi + English on Hindi pages), with English, Arabic, Hindi and their combinations to choose from.
Outputs
- A verdict such as “Words: 2,874 · Pages: 11”, or “Words: 9,410 · Pages with text: 37 of 38” when some pages have no text layer; when nothing can be counted, a message that says why: scans, drawings, unreadable fonts, blank pages or only symbols.
- Four tiles — words, characters with the count without spaces, sentences and reading time — and a summary: pages counted, unique words and their share, paragraphs, lines, average word length, average sentence length, speaking time, words per script, and the words left out when headers and footers are excluded.
- A page-by-page table (words, characters, characters without spaces, sentences, status) and a table of the 20 most frequent words with their count and share of all words. The page table shows its first 500 rows on screen; Copy and CSV include every row.
- Copy results (plain text), Copy table (tab-separated), Download CSV for each table (UTF-8 with a byte-order mark, guarded against spreadsheet formulas) and Download report (JSON) with every total, every page, the top words and the counting method, all named after the PDF, for example essay-word-count.json.
- Warnings that name the pages without a text layer, notes on how words and characters were counted, and links to OCR PDF and Scan to Text when pages lack text.
PDF Word Counter & Text Statistics example
Is the essay under 3,000 words?
Input:
essay.pdf (14 pages: a cover, 11 pages of text, 2 pages of references)
Pages: 2-12
Reading speed (words per minute): 200
Leave out running headers, footers and page numbers: tickedOutput:
Words: 2,874 · Pages: 11
Words: 2,874
Characters: 17,436 (14,621 without spaces)
Sentences: 131
Reading time: 14 min (at 200 words per minute)
Pages counted: 11 of 14
Unique words: 1,102 (38.3% of all words)
Speaking time: 22 min (at 130 words per minute)
Left out: headers, footers, page numbers (words): 66 (pages 2-12)
Most frequent words: policy 41 (1.4%), market 37 (1.3%), growth 29 (1%)How to read the PDF Word Counter & Text Statistics results
Words are runs of letters, marks and digits, counted by the rules in the FAQ: numbers, web addresses and e-mail addresses count once each, while symbols, emoji and lone punctuation are not words. The scripts row splits the same total by the first letter of each word, and tokens without a letter are shown as Numbers.
Characters are counted as you see them: an Arabic letter with its harakat, a Devanagari letter with its vowel sign or an emoji is one character. Inside a paragraph each line break counts as one space; the breaks between paragraphs and pages are not counted, and “without spaces” takes every whitespace character away. A browser that cannot group characters falls back to Unicode code points and a note says so; the JSON report always holds the code-point count as well.
Sentences end at . ! ? ؟ । or ॥, and at 。!? in Chinese and Japanese. A full stop inside a number, after an abbreviation such as Dr or e.g, or before a word in lower case does not end one, and a heading, caption or page number without a final mark counts as a sentence of its own. Paragraphs are blocks separated by extra vertical space, so headings and page numbers are paragraphs too, and a paragraph that runs onto the next page counts once on each page. Lines are the printed lines that hold any text. Every page is counted on its own, and the word, character, sentence, paragraph and line totals are the sums of the pages.
The status column says how far to trust each page. Text means the page’s own text layer was counted. “Image only, no text” and “Image, little text” are usually scans; “Drawings only, no text” means any text was turned into shapes; “Unreadable text” means the fonts do not map their characters to Unicode, so they form no words; “Blank” means nothing is drawn; “No text layer” means the page has no text and could not be checked further; “Could not be read” means pdf.js failed on that page. “OCR, N% confidence” is the mean word confidence of a page read with OCR: treat its count as an estimate, and proofread when the confidence is low.
Reading time is the word count divided by the speed you set, rounded to the nearest minute (“under 1 min” below 60 seconds), and speaking time uses 130 words per minute; both are estimates, because reading speed varies with the language, the text and the reader. Unique words ignore case, tatweel and Arabic vowel marks, and the most frequent words leave out common function words, one-letter words, numbers and addresses, so the list shows what the document is about.
When to use PDF Word Counter & Text Statistics
- Checking an essay, thesis or article against a word limit: select the body pages and leave out headers, footers and page numbers.
- Quoting a translation priced per source word, with a page-by-page table to share with the translator.
- Finding out whether a PDF is searchable before archiving, indexing or sending it: the flagged pages are the scans.
- Estimating how long a report, a lesson or a speech takes to read or to deliver.
- Seeing how much of a bilingual contract or report is in Arabic, English or Hindi from the scripts row.
- Reviewing a document’s vocabulary through its unique words and most frequent terms.
Troubleshooting
- “No words to count: the selected pages have no text layer” — the pages are scans or images. Tick “Also read pages without text using OCR” and count again, or run OCR PDF and count the searchable file.
- Only a few words on every page of a scan (status “Image, little text”) — the only text stored is a stamp or a page number. Use the OCR option to read the rest of the page.
- “No words could be counted: the text in this PDF cannot be read” (status “Unreadable text”) — the fonts have no Unicode map, so the text copies as garbage. Tick the OCR option, or read the pages with Scan to Text and paste the result into the Word Counter.
- The count is higher than your word processor’s — running headers, footers, page numbers, footnotes and references are counted. Select the body pages and tick “Leave out running headers, footers and page numbers”.
- “This file could not be read as a PDF; it may be damaged” — run Repair PDF on it, then add the repaired file. “The password is not correct” — type the open password again in the file’s row.
- Words with swapped or broken letters among the most frequent words — the PDF stores some letters in visual order, as some converters, this site’s included, do with joined Arabic letters and Devanagari. The counts are rarely affected; Scan to Text gives readable text if you need it.
- “OCR stopped after 10 minutes” or “OCR reads at most 300 pages in one run on this device” — select fewer pages and count in parts, or make the file searchable with OCR PDF first.
Frequently asked questions about PDF Word Counter & Text Statistics
How does the PDF word counter count words?
A word is a run of letters, combining marks and digits. Apostrophes and hyphens inside a word keep it whole (don’t, well-known), and so does a full stop between letters or digits (example.com, 3.14); a number written with separators, such as 1,234.56, 10:30 or 25/11/2026, counts once, and so does a web or e-mail address. En and em dashes separate words, symbols and emoji are not words, and a word split by a hyphen at the end of a line is joined again before it is counted. Chinese, Japanese and Thai, which are written without spaces, are split into words by your browser.
Can it count the words in a scanned PDF?
Yes, with OCR. A scan stores a picture of each page rather than text, so the counter alone finds no words on it: the page is marked “Image only, no text”, or “Image, little text” when only a stamp or page number is stored as text, and only that little text is counted. Tick “Also read pages without text using OCR” and count again: those pages are recognised in your browser in the language you choose, marked “OCR, N% confidence”, and counted as estimates. One run reads up to 300 pages on a computer or 60 on a phone and starts no new page after 10 minutes; OCR PDF can make the whole file searchable first.
Why is the count different from Microsoft Word or Google Docs?
Mostly because of what the PDF holds and what each program counts. The counter reads every line printed on the selected pages, so running headers, footers, page numbers, footnotes, captions and references are included unless you leave them out, while text inside images or charts and words drawn as outlines are not in the file to count. Word processors also follow their own rules for numbers, dashes and web addresses, which may differ from these, so small differences are normal. To get closer, select the body pages and tick “Leave out running headers, footers and page numbers”.
Does it count Arabic and Hindi text correctly?
Yes, when the PDF stores real Arabic or Devanagari text. Words stay apart even where a font’s space is narrow, Arabic lines are read from the right, a letter with its harakat (vowel marks) or a Devanagari letter with its vowel sign counts as one character, and a run of tatweel, the Arabic stretching stroke, is not a word on its own. Arabic presentation forms are normalised and a Devanagari vowel sign ि stored before its consonant is moved back, so the most frequent words show real words. Mixed Arabic and English lines are read in an approximate order, and some PDFs, including ones made by this site’s converters, store joined letters in visual order, which can swap letters in a few listed words, or leave out the space where a line changes direction, which counts two words as one.
Can I count only part of a PDF, such as the body without references or headers?
Yes. Click the pages you want in the thumbnail grid, or type them in Pages — for example 3-40, or 2-12, 15, or 8- for page 8 to the end; even, odd and all work too, and Arabic-Indic and Devanagari digits are understood. Then tick “Leave out running headers, footers and page numbers”: lines in the top or bottom 8% of the page that repeat on at least three pages, and on at least half of the pages between their first and last appearance, are dropped, and so are bare page numbers; the summary says how many words were left out. Footnotes change from page to page, so they stay in the count.
Is my PDF uploaded to a server?
No. The PDF is opened and counted by your browser; neither the file nor its text is sent to Mutqan Soft or anyone else, and closing the tab discards it. With the OCR option, only the recognition engine and its language models are downloaded from this site — your pages never leave your device. Right now this tool asks you to sign in to a free account before it runs; copying and downloading then work as usual.
Technical notes
The pages are read in your browser with pdf.js 6.3. Its positioned text runs are grouped into lines by baseline, and a space is inserted where two runs are more than 0.12 em apart, which keeps words apart in fonts with narrow spaces such as Cairo. A line whose letters are mostly right-to-left is read from its right edge, with each Latin stretch, and a number right after it, kept in its own order; a new paragraph starts where the gap to the previous line is larger than both 1.65 times the font size and 1.35 times the page’s usual line spacing, or where the font size changes by 1.2 pt or more.
Before counting, a word split by a hyphen at a line end is rejoined, soft hyphens, byte-order marks and word joiners are removed, Arabic presentation forms are folded with Unicode NFKC normalisation, and a Devanagari vowel sign ि stored before its consonant is moved back after it. Words then follow the rules in the FAQ. Text in scripts written without spaces is split with the browser’s Intl.Segmenter, or one word per Chinese or Japanese character where it is missing, and characters are grapheme clusters as Unicode UAX #29 defines them, counted paragraph by paragraph with each inner line break as one space.
A page’s status is measured, not guessed. More than 20 non-space characters is text; 20 or fewer over an image of at least 250,000 pixels is a scan carrying a stamp or a page number. Pages with 20 characters or fewer are checked for images by scanning the file’s resources, which decodes nothing, and pages with no text and no image for drawing operations, so a page is called blank only when nothing is painted on it. The optional OCR runs tesseract.js 7 at 200 dpi with English, Arabic and Hindi models served from this site.
Limitations and methodology
Only the text the PDF stores is counted. Text inside images, charts or outlined fonts is not, and the OCR option reads only pages without a text layer, so a picture of text on an ordinary page stays uncounted; values typed into fillable form fields and comments are not counted either.
Reading order is rebuilt from positions: columns side by side on the same baseline are joined into one line, tables are read row by row, and mixed Arabic and English lines come out in an approximate order. Word counts do not depend on the order, but sentence and paragraph counts can be off on complex layouts.
Paragraphs are found from vertical spacing, so paragraphs told apart only by an indent merge into one, and a heading, caption or page number counts as a paragraph.
Running headers and footers are found heuristically — in the top or bottom 8% of the page, at most 15 words, repeated on at least three pages — so a header that changes on every page is not detected, footnotes stay in the count because they change from page to page, and the option does not apply to pages read with OCR.
Chinese, Japanese and Thai word splitting depends on the browser’s dictionary, and Devanagari conjuncts are grouped by the browser’s Unicode version, so character counts can differ slightly between browsers. The drawing check on pages without text covers at most 200 pages or 8 seconds; pages beyond it show “No text layer”.
OCR counts are estimates that depend on the scan and on the language chosen. One run reads at most 300 pages on a computer or 60 on a phone and starts no new page after 10 minutes.
The rules are not tuned to match Microsoft Word, Google Docs or other word processors, which treat dashes, numbers and addresses in their own ways.
Security and privacy
The PDF is opened, read and counted by your browser with pdf.js; it is not uploaded, and neither the file nor its text is sent to Mutqan Soft or anyone else. Closing the tab discards it.
With the OCR option, the Tesseract engine and the language models you choose (from about 1.4 MB for Hindi to 3 MB for English) are downloaded from this site, and the pages are recognised on your device; no OCR service is involved.
The CSV and JSON files are made in your browser. Saving one goes through the site’s download step, which asks a visitor who is not signed in to sign in or create a free account; if you sign in on another page, the pending file waits encrypted in this tab for at most 30 minutes. Usage counters record only an event name, the tool’s name and the page language — never the file name, its size, its pages or its text.
References
- PDF Reference — ISO 32000-1:2008 (PDF 1.7), Adobe copyThe freely readable PDF 1.7 specification: page trees, content streams, metadata, permissions and the standard security handler.
- PDF.jsThe open-source PDF renderer that draws PDF pages in the browser without a plugin — how documents are previewed locally.
- UAX #29: Unicode Text SegmentationHow text is divided into grapheme clusters, words and sentences — why a "character" count can differ from a code-point or byte count.
- Tesseract OCR documentationThe open-source OCR engine: supported languages and scripts, image preparation and accuracy factors.