Markdown Formatter & Linter

Automatically tidy and fix Markdown documents β€” consistent headings, spacing, lists and more.

Ad Β· 728Γ—90
Input
Formatted Output
✨Formatted output will appear here
Ad Β· Responsive

What does the Markdown Formatter do?

The Markdown Formatter automatically applies a set of stylistic rules to your document, producing clean, consistent output. Each rule can be toggled on or off. The Diff view shows you exactly what changed β€” added lines in green, removed lines in red β€” so nothing is ever changed without you seeing it.

Rules include: enforcing a blank line before and after headings, normalising unordered list markers to a single character (- by default), standardising bold and italic syntax (** and *), removing trailing whitespace, collapsing multiple consecutive blank lines into one, and ensuring the document ends with a single newline. The linter also reports issues like skipped heading levels (e.g. jumping from H1 to H3) without fixing them, so you can address them manually.


How to Use

  1. Paste your Markdown into the left panel.
  2. The formatted output appears instantly on the right.
  3. Toggle individual rules on or off using the buttons above the panels.
  4. Switch to the Diff tab to see a line-by-line view of every change made.
  5. Check the Lint issues panel below for warnings that need manual attention.
  6. Click βΏ» Copy to copy the result, or ⬇ Download .md to save as a file.

Frequently Asked Questions

The formatter automatically fixes issues β€” it rewrites your document with consistent spacing, normalised list markers, trimmed trailing whitespace, and so on. The linter reports problems it finds but cannot safely auto-fix, such as skipped heading levels (jumping from H1 to H3), which are a structural issue that requires human judgement to resolve. Both run together here β€” the formatter applies changes, the linter surfaces warnings.

No. The formatter detects fenced code blocks (``` or ~~~) and indented code blocks and skips all rules inside them. Code content is passed through completely unchanged. This includes trailing whitespace rules, blank line rules, and emphasis normalisation β€” none of these apply inside code blocks.

No. This tool runs entirely in your browser. Your Markdown is never sent to any server, never logged, and never stored. Closing the tab removes all data immediately.

Ad Β· Responsive