PDF Word Count

Count words, characters, sentences and pages in a PDF — locally in your browser.

Free in-browser PDF word counter. Extracts text from every page of a PDF and counts words, characters, sentences and pages with a per-page breakdown. Nothing is uploaded — the file is parsed entirely on your device. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

How does this count words in a PDF without uploading it?

The PDF is parsed entirely in your browser. The tool reads the file as bytes, inflates the FlateDecode content streams and extracts the text-showing operators, then counts words from the resulting text. No data leaves your device.

A PDF word counter tells you how many words, characters and pages a document contains — useful for translators billing per word, students checking essay length, and legal teams sizing disclosure bundles. Unlike most online counters, this tool never uploads your file: the PDF is decoded entirely in your browser, so confidential contracts and unpublished manuscripts stay on your machine.

How it works

A PDF is not a flat text file. Each page’s text lives inside a content stream — a sequence of drawing operators — and those streams are usually compressed with FlateDecode (zlib/deflate). To count words the tool:

  1. Reads the file as raw bytes and locates every stream … endstream object.
  2. Inflates any FlateDecode streams using the browser’s native DecompressionStream.
  3. Scans the decoded operators for text-showing commands — Tj, TJ, ' and " — and pulls the string literals and hex strings out of them.
  4. Joins the strings into page text, inserting spacing where layout operators imply a gap, then counts words, characters, and sentences.

Words are runs of non-whitespace separated by whitespace. Sentences are approximated by counting terminal punctuation (., !, ?). Because PDFs position glyphs rather than store paragraphs, the count is an accurate estimate rather than a byte-perfect match to the authoring tool — minor differences of a few percent are normal.

Who uses PDF word counts and why

Translators are the primary use case. Professional translation is billed per source word, and many clients supply PDFs rather than editable source files. Getting a fast, privacy-safe word count from a locked or confidential PDF before accepting a job is exactly what this tool is for.

Students and academics face word limits for essays, dissertations, and journal submission guidelines. Checking a PDF export against the limit catches any discrepancy between the word processor’s count and what the PDF actually contains (headers, footnotes, and captions can differ between tools).

Legal and compliance teams sizing discovery or disclosure bundles need page and word counts to estimate review effort and cost before committing resources.

Technical writers and content teams use page-level breakdowns to spot sections that are unusually long or short before editing.

The per-page breakdown

The table showing word count per page is useful beyond the total. A 50-page document with 200 words on page 35 likely has an empty or near-empty page — possibly a separator, blank page, or an image-only page with no text layer. Spotting those pages explains why the total is lower than expected and can identify pages where OCR would be needed for a complete count.

Tips and common issues

  • Zero count on all pages: the PDF is almost certainly a scan with no text layer. Run OCR (Adobe Acrobat, Tesseract, or similar) to generate a text layer first.
  • Count much lower than expected: check whether some pages are image-heavy or whether the PDF uses subset-encoded fonts with non-literal character codes.
  • Encrypted PDFs: password-protected files cannot be decoded in the browser without the password. Remove the protection first.
  • Everything runs locally; no file data is transmitted.