Document Word Counter
Count words, characters, and paragraphs in a document or highlighted text. Open a UTF-8 text file, use the DOCX word counter, or count words in PDF text layers on your device.
- Free
- Works Offline
- No Uploads
How to Count Words in a Document
- Open the HTML, review Security Check, then select Continue.
- Open a TXT, DOCX, or PDF file, paste text, or choose Open Sample.
- Review Words, Characters With Whitespace, Characters Without Whitespace, and Paragraphs.
- Highlight text in Text Used for Counts and choose Count Selected Text. Clear Selection restores the whole document.
- Expand Counting Rules for Unicode, hyphen, whitespace, and format details.
- Choose Build Count Report and Download JSON to save the totals, scope, and rules.
Counts for a Document or Selection
- Count Unicode words, grapheme clusters, and paragraphs.
- Highlight text to get a separate count and clear it to restore the whole document.
- Show characters with and without whitespace. Save the totals and counting rules as JSON.
Formats and Compatibility
| Input | Paste text or open a local UTF-8 TXT, unencrypted DOCX, or unencrypted PDF with a text layer. |
|---|---|
| Output | Word, paragraph, and both character totals for the whole document or highlighted text. The optional JSON summary includes counts, scope, and rules. |
| Browser | A modern browser with local file support. |
| Scope | Up to 8 MiB for TXT and 32 MiB for DOCX or PDF, within a 4 Mi UTF-16 unit extracted text budget. DOCX uses the main body. PDF uses extractable text. |
| Operating Systems |
Local Processing Without Uploads
The browser-based Word Count Document no upload workflow keeps selected files and text on your device.
Select Open Sample to see the workflow with the included example.
Formats and Compatibility
DOCX includes main-body and table paragraphs. PDF follows the text layer and estimates paragraphs. Image-only pages have no extractable text. TXT supports UTF-8.
Check the Whole Document or a Selection
The full sample shows five words and two paragraphs. Select Café 42, then Count Selected Text to see two words.
Frequently Asked Questions
Where is the Word Count Document download?
Select Download Tool ZIP. Extract the archive and open DocumentWordCounter.html in a supported browser.
Can I use Word Count Document offline?
Yes. After extracting the tool, open its standalone HTML to use the Word Count Document local workflow.
Can I use Word Count Document in browser mode?
Yes. The browser-based reader and counter run on your device with no upload.
Is there a free Word Count Document tool?
Yes. Local Studio makes it free for personal and business use.
Can I count words in PDF documents?
Yes, for unencrypted PDFs with an extractable text layer. PDF line and paragraph counts depend on the text layer. Scanned images need OCR first.
What does the DOCX word counter include?
It counts readable paragraphs in the main document body, including tables. Headers, footers, notes, comments, and images are outside the count.
How are hyphens and whitespace handled?
Hyphens separate words, while internal apostrophes may stay within a word. Character totals show grapheme clusters with and without whitespace. Blank lines separate plain-text paragraphs.
Does this tool work offline on Windows, macOS, Linux, and ChromeOS?
Yes. Local Studio tools run offline on Windows, macOS, Linux, and ChromeOS. Download the tool ZIP, extract it, and open the included HTML file in a supported browser. Your files are processed on your device without uploads.
Which browsers can I use with this offline tool?
Use a current version of Google Chrome, Microsoft Edge, Mozilla Firefox, or Safari where that browser is available for your operating system. Chrome is built into ChromeOS, and Safari is available on macOS.