Markdown Formatter
Format Markdown with consistent spacing and list markers, live as you type.
Formatted with Prettier, live as you type, entirely in your browser. Nothing you type is sent anywhere.
Need the opposite? Markdown to HTML Converter
What is Markdown Formatter?
Paste Markdown with inconsistent spacing or list formatting and get it cleaned up instantly, powered by Prettier, the same formatter many editors use, applied to Markdown's specific conventions. Useful for cleaning up a README or doc written by hand (or pasted from several contributors' different styles) into something consistent before committing it. Formatting happens entirely in your browser via Prettier's standalone build.
How to Use the Markdown Formatter
- 1
Paste the Markdown: Enter Markdown with inconsistent list markers or spacing.
- 2
Read the Formatted Result Instantly: The normalized output appears automatically as you type.
- 3
Copy the Result: Use the copy button to copy the cleaned-up Markdown.
How It Works
Prettier parses the Markdown into a document structure, then re-prints it using a consistent set of conventions: list markers normalized to a single style, consistent blank-line spacing between headings/paragraphs/lists, and trailing whitespace removed. It doesn't rewrite your wording or rewrap prose, only the structural formatting around it.
Example
# Title
* item one
* item two
Some text.# Title
- item one
- item two
Some text.
List markers normalize to `-`, and consistent blank lines are inserted between the heading, list, and paragraph.
Common Use Cases
Cleaning up a README that's picked up inconsistent list markers and spacing from several contributors editing it by hand over time, or normalizing Markdown pasted in from a different editor before it goes into a repo.
Frequently Asked Questions
Common questions about Markdown Formatter.