Markdown Word Counter

Count the words readers will actually see in a Markdown file. Syntax characters, link URLs and optionally code blocks are left out.

Choose files

Drop files here or choose filesSupported: MarkdownUp to 50 MB per file. Files are read on your device and never uploaded.

Counted in your browser — nothing is uploaded.

You can also drop a .txt, .md, .docx, .pdf or .epub file onto the text box.

Text analysis

Words
KeywordCountDensity

Start typing to see the most frequent words.

Character frequency
CharacterCountDensity

How to use it

  1. Drop .md files onto the box, for example blog posts or documentation pages.
  2. Leave “Ignore code blocks” on to count only prose, or turn it off to include code.
  3. Open a file in the editor to see the plain text that was counted.

How we count

Front matter, HTML tags, heading and list markers, emphasis characters and table pipes are removed before counting.

Links count as their visible text and images as their alt text; the URLs themselves are not counted.

Fenced and indented code blocks are skipped when “Ignore code blocks” is on; inline code is always counted as text.

Frequently asked questions

Why not just count the raw file?

Raw Markdown contains URLs, symbols and code that readers never see. Counting the rendered text gives the number editors and word limits care about.

Is front matter counted?

No. YAML front matter between --- lines at the top of the file is removed before counting.

Are my files uploaded?

No. Files are opened and read by JavaScript in your browser; nothing is uploaded, and the text is not sent with analytics. If you open a file's text in the editor, it is kept as a draft in this browser until you clear it.

Does it support MDX or other flavours?

Common CommonMark and GitHub-flavoured syntax is handled. JSX components in MDX are removed like HTML tags, but their text content is kept.

Can I paste Markdown instead of uploading?

Use the editor below for pasted text. Pasted Markdown is counted as typed, so symbols that aren't words (like # or *) are ignored but link URLs count as words.

How is reading time calculated?

From the counted words at 238 words per minute, the average silent reading rate for English non-fiction. You can change the speed in the statistics panel.