Markdown Formatter
Paste Markdown and get it back formatted by Prettier: one list style, aligned tables, consistent emphasis, and tidy YAML frontmatter. Formatting runs in your browser, and the result opens in an editor with a Raw view and a Preview you can type in.
What the Markdown formatter does
You paste a Markdown document, and the formatter returns the same text in the style of Prettier. It changes layout only: list markers, emphasis markers, blank lines between blocks, table alignment, and the spacing inside YAML frontmatter. The words stay as you wrote them.
Prettier does not rewrap long lines, and it keeps your heading style. A heading underlined with = signs stays an underlined heading. A diff after formatting therefore shows layout changes, which makes it safe to run on a README or a docs page before you commit it.
Key features
The formatter uses Prettier with its Markdown and YAML plugins and no custom settings, so the result matches a project that has no Prettier config file. These are the changes you will see most often.
- Bullet lists use one marker, and a numbered list that uses 1) becomes 1.
- Bold written as __text__ becomes **text**, and italic written as *text* becomes _text_.
- Table columns are padded to the same width, and the alignment colons are kept.
- Frontmatter is formatted too, so tags: [ docs,draft ] becomes tags: [docs, draft].
- A YAML error in the frontmatter shows with its line, instead of a result.
- A code block with no closing fence shows as a warning above the result.
- Copy puts the formatted text on your clipboard, and Download saves it as prettify.md.
How to use the Markdown formatter
Start in the box on this page. It needs no sign-up and no upload. Move to the editor when you want to keep working on the file with the Raw view and the Preview.
- Paste your Markdown into the box, or select Try an example.
- Read the Result pane. It updates a moment after you stop typing.
- Check the line above the result. It gives the line count and the frontmatter keys, and it lists any warning.
- Select Copy to use the text, or Download to save it as prettify.md.
- Select Open in full editor to continue with the formatted text in the Raw view.
- In the editor, select Format in the toolbar to run Prettier again after you edit.
Worked example: a messy release note
This document mixes styles, as notes do when several people edit them. The frontmatter has odd spacing, the bullets are indented with extra spaces, the numbered list uses a bracket, and the table has no padding. Paste it into the box to follow along.
---
title: Release notes
tags: [ docs,draft ]
---
# Release 2.4
* Added dark mode
* Fixed the export bug
* Only on Safari
1) Run the build
2) Tag the release
|Name|Status|
|--|:-:|
|Parser|done|
|Exporter|in progress|
Some text with __bold__ and *italic*.Reading the formatted result
Prettier puts a blank line after the frontmatter and between blocks. It switches the bullets to dashes, nests the child bullet by two spaces, and turns 1) into 1. The table gets padded columns, and the centered Status column keeps its colons.
Here is the output. Every word is still there.
---
title: Release notes
tags: [docs, draft]
---
# Release 2.4
- Added dark mode
- Fixed the export bug
- Only on Safari
1. Run the build
2. Tag the release
| Name | Status |
| -------- | :---------: |
| Parser | done |
| Exporter | in progress |
Some text with **bold** and _italic_.Common use cases
People use a Markdown formatter when other people will read the file, or when a tool compares it line by line. These are the jobs that come up most often.
- Clean a README before you open a pull request, so the diff shows only real changes.
- Fix a table that you pasted from a spreadsheet and that has no padding.
- Tidy the frontmatter of a blog post or a docs page.
- Format a SKILL.md file before you share the skill.
- Normalize notes that came from several editors with different habits.
Size limits and privacy
The box on this page formats documents under 200 KB. For a file of 200 KB or more it shows a warning and leaves the text as it is, because Prettier runs in the page and would pause it. Above 512 KB the box asks you to open the editor, and there you can run Format on a large file when you want.
Prettier loads the first time you format Markdown and runs in your browser. A draft changelog or an internal runbook is not sent to a server for formatting.
Frequently asked questions
Which formatter does this page use?
Prettier, with its Markdown and YAML plugins and its default settings. It is the formatter that many code editors and CI checks use, so the output matches what Prettier gives you in a project without a config file.
Will formatting change my text?
No. Prettier changes layout only: list markers, emphasis markers, spacing, blank lines, and table alignment. Your words and links stay the same, and your heading style is kept.
Does it wrap long lines?
No. Prettier leaves line breaks inside a paragraph as they are, so a long line stays long and a short line stays short. This keeps diffs small.
Is the Markdown formatter free?
Yes. Formatting, the Raw view, the editable Preview, and the frontmatter Properties card are free with no sign-up. Pro is a one-time purchase that adds Side by side editing, the Outline, Mermaid diagrams, Skill Check, and export.
Can I format MDX here?
Use the MDX formatter for .mdx files. It uses the MDX parser of Prettier, keeps imports, exports, and JSX as written, and keeps the whole file as written when formatting would change how MDX reads it.
Is my Markdown uploaded to a server?
No. Prettier runs in your browser, so an unreleased changelog or an internal runbook stays on your device. The text leaves your device only if you create a share link yourself.