Markdown Formatter
About this tool
About Markdown Formatter
Markdown written by several people, exported from a note app or converted from another format tends to mix styles: some bullets use *, others -, headings are underlined in one place and hashed in another, numbered lists jump from 3 to 7, and tables are impossible to read in plain text. This formatter makes the source consistent without changing what it renders. Bullets become the marker you choose, underlined headings become # headings with the stray closing hashes removed, numbered lists are renumbered 1, 2, 3 (or all written as 1. if you prefer the diff-friendly style), and tables are padded so every pipe lines up, respecting column alignment and wide characters like Chinese or emoji. Code fences become backticks and their content is copied untouched. Exactly one blank line separates headings, lists, tables, quotes and code blocks, trailing spaces are removed while intentional two-space line breaks stay, and the file ends with a newline. Emphasis can optionally be unified to ** and * or __ and _. It all runs in your browser.
Built and maintained by Abhi JainUpdated
How to Format Markdown
- 1
Paste Markdown
Paste into the Markdown box or open a .md file. Click Sample to see a messy example.
- 2
Choose the style
Pick Bullets, Numbered lists and Emphasis, and tick # headings, Align tables, ``` fences and Final newline.
- 3
Copy the result
Copy or Download the Formatted Markdown, and compare it with the original in the Diff Checker if you like.
Markdown Formatter: questions and answers
Will formatting change how my Markdown looks?
No. Only the source changes: bullets, heading markers, numbering, spacing and table padding. The rendered page stays the same, except that lists that jumped numbers are renumbered when you choose Renumber.
Is code inside fences changed?
Never. Everything between the opening and closing fence is copied exactly, including spaces. Only ~~~ fences are rewritten as ``` when that option is on.
Why number every item 1.?
Markdown renders 1. 1. 1. as 1, 2, 3. Writing every item as 1. means inserting or moving an item doesn't change the other lines, which keeps version-control diffs small.
Does it wrap long lines?
No. Rewrapping prose changes many lines at once and can break links and tables, so lines are left as written.
Related Tools
- Markdown EditorWrite Markdown with a live, safe preview: GitHub tables, task lists and code blocks. Export Markdown or HTML.
- Markdown TOC GeneratorGenerate a table of contents for a README or Markdown document with GitHub-compatible anchor links.
- HTML to MarkdownConvert HTML from pages, emails or a CMS into clean GitHub-flavoured Markdown, with scripts and styles removed.
- Markdown Link ExtractorList every link, image and reference in a Markdown file and flag broken anchors, http links and images without alt text.
- Diff CheckerCompare two texts by line, word or character, side by side or unified, with ignore options, stats and a downloadable patch.