Compare Markdown by source or rendered text, ignoring style-only edits
Markdown Formatter
Make a Markdown file consistent and easy to read, with proof that the page it renders is unchanged.
Loading tool…
How to use markdown formatter
Paste Markdown or open a .md file.
Pick the bullet marker and the emphasis and strong markers you prefer.
Choose which tidy-ups to apply: headings, blank lines, trailing spaces.
Read what changed, then copy or download the formatted file.
What this tool does
- Turns underlined headings into # headings and removes closing # marks and extra spaces.
- Uses one bullet marker and one style for emphasis and strong text throughout the file.
- Leaves one blank line between blocks, removes repeated blank lines and trailing spaces, and keeps hard line breaks.
- Never touches code blocks or raw HTML blocks.
How the result is verified
Every edit is checked by rendering the document before and after with a CommonMark parser and comparing the HTML byte for byte. Edits that would change it are left out.
Frequently asked questions
How do I know formatting did not break anything?
The tool renders your original and the formatted file to HTML and compares them exactly. If a single change would alter the result, that change is not made and the tool tells you how many it skipped.
Why did some bullets keep their old marker?
In Markdown, changing the bullet character can join two separate lists into one, which changes the page. When that would happen the tool leaves those bullets alone.
Is my data uploaded to a server?
No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.
Related tools
Table of contents with GitHub-style heading anchors
CommonMark and GitHub tables to clean, sanitized HTML
A split Markdown editor and preview for README files, notes, documentation, and messages, processed locally.