Markdown Formatter

Paste Markdown and get a tidy, consistent version as you type: one space after #, no closing #s, underlined headings turned into # headings, one bullet character, ordered lists renumbered, a blank line around headings, lists, rules and code blocks, never more than one blank line in a row, no trailing spaces, and a single newline at the end. Code blocks and front matter are left exactly as they were.

Tool
Bullets
Markdown
Formatted Markdown
Lines in
0
Lines out
0

Everything runs in your browser. What you type never leaves this device.

Features

  • # headings with one space; underlined headings converted

  • One bullet style: -, * or +

  • Ordered lists renumbered from their first number

  • Blank lines around headings, lists, rules and code fences

  • Trailing spaces removed; two-space line breaks kept as a backslash

  • __bold__ to **bold** (optional)

  • Code blocks and front matter untouched

  • Runs in your browser: your text is never uploaded. Free, no signup

When to run it

Before a pull request

Make a README or docs change consistent so the diff shows content, not spacing.

Notes from different editors

Merge notes written in Obsidian, Notion exports and VS Code into one consistent style.

Content handed to a CMS

Clean Markdown before pasting it into a blog or knowledge base that is strict about blank lines.

What changes and what does not

Changes

  • Headings: "##Title" stays (it is not a heading in standard Markdown), "## Title ##" becomes "## Title".
  • Bullets: *, + and - all become the bullet you pick; indentation is kept.
  • Ordered lists: 3, 7, 9 becomes 3, 4, 5 when Renumber is on.
  • Spacing: a blank line before and after headings, lists, rules and code blocks; runs of blank lines become one.
  • Hard line breaks written as two trailing spaces become a backslash, which survives editors that strip spaces.

Left alone

Fenced code blocks, YAML front matter, tables, block quotes and your wording are not changed. It is a formatter, not a linter: it does not check links or spelling. To see the result rendered, paste it into the Markdown Preview.

Other Markdown tools

Markdown Formatter - FAQ