Markdown word counter

Updated

Paste a README, article, or spec and get word, character, sentence, and paragraph counts that ignore markdown syntax, code blocks, and URLs — next to the raw numbers, so you can see the difference. Reading time, top words, keyword density, and a per-section breakdown help you balance a document, and a target bar tracks progress toward a length goal.

Document

0 / 500 · 0%
Counting…

Prose counts exclude markdown syntax, code blocks, inline code, URLs, HTML, and front matter. Runs in your browser.

What is the difference between prose and raw counts?

Raw counts treat the file as text: every token between spaces is a word, including ```ts, https://…, and the --- lines of front matter. Prose counts come from the parsed document — the same GFM parser used across these tools — and include only what a reader would read. For a README with a few code samples the two numbers can differ by a third; for documentation with large snippets, by more.

How do I use the per-section counts?

Every heading starts a section, and the outline shows how many prose words sit under each one. A 900-word section next to three 40-word sections usually means the long one wants splitting or the short ones are placeholders. The structure row does the same for headings by level, links, images, code blocks, tables, and task-list progress. If the heading outline itself looks off, the linter will point at skipped levels and duplicate titles.

What is keyword density for?

Type a word or phrase and the tool reports how many times it occurs in the prose and what share of all words it makes up. It is a quick check that a page about one topic actually names that topic, and that it does not repeat a phrase so often that it reads as stuffing — anything above a few percent for a multi-word phrase is a lot. Top words (with common stop words hidden) show the same thing without you having to guess the phrase. When the document is ready, the share tool turns it into a link, and the PDF converter into a file.

How do you count words in markdown?

The document is parsed, and only the prose is counted: paragraph, heading, list, and table text. Code blocks, inline code, URLs, raw HTML, and YAML front matter are excluded, and link text is counted but link destinations are not. The raw-source count is shown next to it so you can see how much the syntax adds.

Why is the prose word count lower than my editor shows?

Editors count every whitespace-separated token in the file, so a fenced code block, a long URL, and the front matter all inflate the number. This tool reports what a reader would actually read. Toggle "Count image alt text" if your alt text is substantial.

How is reading time calculated?

Prose words divided by 238 words per minute, the average adult silent reading speed measured across studies, rounded to the nearest 10 seconds. Change the speed for technical material (slower) or skimming (faster). Speaking time uses 150 words per minute.

What counts as a sentence or a paragraph?

A sentence ends at a period, question mark, or exclamation mark followed by whitespace; headings and list items count as one sentence each. A paragraph is any block of text separated by a blank line.

Is my text uploaded anywhere?

No. Parsing and counting happen in your browser; the page makes no network requests with your document.

More markdown tools