Everything below is answered in full, nothing to click open.
How do I format Markdown to clean up whitespace?
Paste it into the box above and press Format Markdown. Trailing spaces are trimmed and extra blank lines collapsed, and the tidied result appears on the right.
Is the Markdown formatter free?
Yes, entirely free. No signup, no trial and no usage limit, since it runs in your browser.
Is my text uploaded anywhere?
No. Processing happens on your own machine in JavaScript. Nothing is sent over the network.
What's the difference between this and the Markdown stripper?
This keeps every Markdown symbol exactly as written and only tidies whitespace. The stripper removes the syntax entirely and returns plain text.
Does this convert plain text into Markdown?
No, it doesn't add headings, bold or any structure that isn't already there. It only cleans up the whitespace around Markdown that already exists in your input.
Does it change my headings, bold or links?
No, every heading marker, bold marker and link is kept exactly as written. Only whitespace, trailing spaces and extra blank lines, is affected.
Will it remove Markdown's two-space line break?
Yes, and this is the one thing to watch for. Trimming trailing whitespace removes those two spaces along with any other trailing space, turning an intentional hard break into a normal soft wrap.
How many blank lines does it collapse a run down to?
Three or more consecutive blank lines are collapsed down to exactly two, keeping a normal paragraph gap without an oversized empty stretch.
Does it fix heading levels or list formatting?
No, it doesn't restructure or validate your Markdown's structure. It only trims trailing whitespace and collapses excess blank lines.
Should I review the result before using it?
Yes, particularly for any place your source relied on the two-space hard break, since that's the one change this tool makes that isn't purely cosmetic.
Does it work on phones?
Yes, it works the same in any modern mobile browser.
Can I use it on a README before committing?
Yes, that's a common use, especially after merging edits from contributors with different editor whitespace settings.
Does it fix indentation in nested lists?
No, it doesn't restructure indentation. It only trims trailing whitespace at line ends and collapses excess blank lines.
Is there a batch mode or an API?
Not yet. For several documents, paste, format and copy each one for now.
Is it safe for confidential text?
Yes, nothing is transmitted or retained, so it's fine for drafts you haven't shared anywhere.
Why does trailing whitespace matter in version control?
It's invisible in most editors but shows up as a real change in a diff, cluttering a commit history with noise unrelated to the actual content edited.
Does it touch code blocks?
It trims trailing whitespace per line the same way throughout the document, so check fenced code blocks specifically if trailing spaces are meaningful in your code.
Will it add missing blank lines where I need them?
No, it only collapses excess blank lines down to two; it doesn't add spacing where there isn't any already.
Can this fix a document where blank lines look wrong when rendered?
If the cause is a large run of blank lines in the source, yes. If it's something else, like a heading level or list nesting issue, this formatter won't touch that.
Is this the same as a code formatter like Prettier?
No, it's a lighter, narrower pass focused specifically on trailing whitespace and blank-line runs, not a full syntax-aware Markdown formatter.