Markdown Formatter
Format Markdown instantly: fix heading spacing, normalize list bullets, trim trailing spaces, collapse blank lines, and standardize newlines. Runs in your browser.
How to use
Use it to clean up Markdown before sharing or committing.
- Paste Markdown into the input box.
- Choose formatting options (or keep the defaults).
- Click Format Markdown.
- Copy the output or continue editing.
FAQ
Does this formatter change my Markdown meaning?
It’s designed to be conservative: it mostly normalizes whitespace, headings, and list markers. Content inside fenced code blocks is preserved.
Will it modify code blocks?
No—lines inside triple-backtick or triple-tilde fences are left as-is (including tabs and trailing spaces).
What list bullets does it output?
It normalizes unordered list markers to - (dash) and keeps horizontal rules like *** or --- unchanged.
Can I keep multiple blank lines?
Yes—turn off “Collapse blank lines” to keep your original blank-line spacing.
Does it convert Windows line endings?
Yes—enable “Normalize newlines” to convert CRLF/CR to LF for cleaner diffs in Git.
Is my text uploaded to a server?
No. Formatting runs locally in your browser; the tool doesn’t make network requests.
Why add a final newline?
Many editors and linters expect files to end with a newline; it avoids “no newline at end of file” diffs.
Continue your workflow
Browse related tools by task. Use the improved core tools for a consistent workspace with file import, downloads and clear validation errors.
Whitespace cleanup · Heading spacing · Blank lines around headings
Additional controls for this task, preserved from the original implementation. Inputs stay inside this mode.