About Markdown Formatter
Paste a README, a changelog or notes written by several people and get the same document back in one consistent style. Headings, list markers, emphasis, blank lines and table columns are normalised, while the words, links and code blocks stay exactly as they were.
Formatting uses the Markdown printer from Prettier, the formatter many projects already run in their editors, so the result matches what a Prettier check would expect. Optional line wrapping reflows paragraphs to a chosen width or joins them onto single lines.
How it works
- Underlined headings (a line of === or --- under the text) are rewritten as # headings first, unless you choose to keep them as written.
- The document is then printed by Prettier: bullets become "-", emphasis becomes _text_ and strong text **text**, ordered lists use "1.", runs of blank lines collapse to one and table columns are padded to line up.
- Fenced and indented code blocks, front matter, links and HTML are left as they are. Formatting runs in a background worker so the page stays responsive.
Questions
Why does a second list use "*" instead of "-"?
Two lists that follow each other with only a blank line between them would merge into one if they used the same marker. Prettier alternates "-" and "*" so they stay separate lists, exactly as they were in the original.
Will it change my code blocks?
No. The contents of fenced and indented code blocks are copied unchanged, including any odd spacing in them.
Can I choose "*" for bullets or "*" for emphasis?
No. The tool applies one fixed style, the same one Prettier uses, so that formatted files agree with each other. The options cover heading style and line wrapping.
How large a document can it format?
Up to 256 KB of text, which is a long book chapter. Formatting time grows quickly with length, so very long documents can take a few seconds.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.