Markdown Formatter

Paste Markdown written by several people, or pasted from several places, and get the same document in one consistent style.

How it works

The formatter goes through the file line by line and changes only style: every bullet gets the same marker, underlined headings become # headings, extra # and spaces around heading text go, and *** or ___ rules become ---.

Numbered lists are counted in order from their first number, each nesting level separately. Runs of blank lines shrink to one, headings and code fences get a blank line around them, and trailing spaces go, except the two that make a deliberate line break.

Code blocks, inline code and YAML front matter are copied exactly. No blank line is ever added inside a list, because that would change a tight list into a loose one. The work runs in a background worker, and nothing is uploaded.

How to use it

  1. 1 Choose the bullet marker you prefer, - or *.
  2. 2 Leave Number lists 1, 2, 3 on to renumber ordered lists, or switch it off to keep the numbers as written.
  3. 3 Paste your Markdown.
  4. 4 Copy the formatted result, or download it as a .md file.

Good to know

  • Run it before a commit to keep a docs folder in one style, so a diff shows real changes rather than marker swaps.
  • Writing every item as "1." is a common habit, since it keeps the source tidy when items move. Switch numbering off to keep that style.
  • Two lists that sit one after the other, separated only by a blank line, stay two lists: the second gets the other marker, as Prettier does.
  • Formatting twice gives the same result as formatting once, so it is safe to run on a file that is already tidy.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

Cleaning up meeting notes that three people wrote

Shared Markdown drifts. One person types * for bullets, another types -, a third pastes a list from somewhere that used +. Headings appear as "Decisions" with a line of === under it in one section and "##Actions" without a space in another. None of this is wrong, but it is hard to read as source and it makes every diff noisy.

Here is a small example. The notes start with "Weekly sync" underlined by "===========", then "* Budget approved" and "+ Hiring paused", then "## Actions ##", then a numbered list where every item is "1.": "1. Ana sends the draft" and "1. Raj books the room". After formatting with bullets as -, the title is "# Weekly sync", followed by one blank line, then "- Budget approved". The "+ Hiring paused" line gets a * marker instead of -, which is the tool keeping your meaning: in Markdown, a change of bullet marker starts a new list, so these were two lists. The heading becomes "## Actions" with a blank line before and after it, and the list reads "1. Ana sends the draft" and "2. Raj books the room".

Notice what did not change. A code block in the notes, even one containing lines that look like "* not a list" or "# not a heading", stays exactly as it was, blank lines and all. A YAML block between --- lines at the very top of the file is left alone. A line that ends with two spaces before more text keeps them, because those two spaces are a line break.

The point of these limits is trust. A formatter that rewrites more than you asked for teaches people to stop using it. This one changes style and leaves content alone, and it was checked on 99 real Markdown files, every one of which rendered the same before and after formatting.

It does have limits. It does not rewrap paragraphs, align table columns or change emphasis markers. Lists inside block quotes keep their original markers. A heading with leading spaces is left as it is, and so is the unusual case of a numbered list whose renumbering changes the width of a number, such as 9 becoming 10, which can shift the indentation that nested content relies on. Documents over one million characters are refused.

Frequently asked questions

Will formatting change how my document looks?

It should not. Every rule is limited to changes that render the same: a - bullet and a * bullet make the same list, and a heading underlined with === is the same <h1> as one starting with #. The tool was checked against 99 real Markdown files, each of which rendered identically before and after.

Does it rewrap long lines or align tables?

No. Line wrapping is a matter of taste, and rewrapping makes every diff noisy, so lines stay as long as you wrote them. Tables and their column widths are left as they are.

Does it change **bold** and _italic_ markers?

No. Emphasis markers are left exactly as written. They can sit inside words, links and code in ways that make changing them risky, and the gain is small.

Is my file uploaded?

No. Formatting runs in your browser in a background worker, and the download is made on your device.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.