Text tools

Markdown Formatter

Markdown Formatter

Tidy Markdown: consistent bullets and headings, renumbered lists, aligned tables, one blank line between blocks.

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. 1

    Paste Markdown

    Paste into the Markdown box or open a .md file. Click Sample to see a messy example.

  2. 2

    Choose the style

    Pick Bullets, Numbered lists and Emphasis, and tick # headings, Align tables, ``` fences and Final newline.

  3. 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.