Polysh for agents is in early access. Your coding agent records the demo, and Polysh finishes it. Join the waitlist →

Markdown Word Counter

Get a true word count for Markdown docs, plus heading, link and image totals.

Loading your browser tool…

What Markdown Word Counter does

An ordinary word counter treats **, ##, link addresses and code samples as words, so a Markdown help article or README comes out longer than it reads. Here the document is rendered before counting, which gives you the number a reader actually sees.

Use it to keep documentation pages within a length target, compare two drafts, or check that a tutorial isn't mostly code. Beside the word total you get counts of headings, links, images and code blocks, and a reading time at 200 words per minute.

Example

Input

# Record a demo

Open the [recorder](https://polysh.io/product/recorder/) and press **Start**.

```bash
npm run dev
```

![Toolbar](toolbar.png)

Report shows

Words: 9 (about 1 minute to read)
Headings: 1
Links: 1
Images: 1
Code blocks: 1

Only the heading and the sentence are counted. The link address, the code block and the image's alt text add nothing to the total.

How to use Markdown Word Counter

  1. Paste your Markdown, or click Open file to load a .md file.
  2. Keep Leave code out of the count on for prose only, or turn it off to include code.
  3. Read the Words tile and the totals beside it.

Good to know

  • Leaving code out also removes inline code such as npm install, so a sentence that names a command counts a word or two short.
  • Image alt text is never counted, even though screen readers read it aloud.
  • Reading time uses a flat 200 words per minute. Step-by-step guides that people follow while clicking take longer; the Reading Time Calculator lets you set the pace.

Questions about Markdown Word Counter

How do I count words in a Markdown file?

Paste the file or click Open file. The Words tile shows the count of visible text, without Markdown symbols, link addresses or code. Turn off Leave code out of the count if your target includes code samples.

How long should a help-center article be?

Most task articles work well between 300 and 800 words: enough for the steps and a screenshot or two, short enough to scan. Anything over about 1,500 words is usually several articles that should each answer one question.

Does the count include headings?

Yes. Heading text is part of what readers see, so its words count. The Headings tile separately shows how many headings the document has, which helps when you check structure.

Why is the count lower than in my editor?

Many editors count the raw file, including URLs, symbols and code. This counter only counts rendered text, so the gap is biggest in documents with lots of links or code blocks.