Polysh for agents is in early access. Your coding agent records the demo, and Polysh finishes it. Join the waitlist →

Markdown Cleaner

Get consistently formatted Markdown that diffs cleanly and keeps linters quiet.

Loading your browser tool…

What Markdown Cleaner does

Markdown pasted from several authors, AI chats or exported notes tends to mix *, + and - bullets, cram headings against paragraphs, and leave runs of empty lines. It still renders, mostly, but reviews get noisy and linters such as markdownlint complain. The cleaner rewrites those patterns into one consistent style.

Run it before committing docs, after merging two drafts, or before converting with Markdown to HTML. A line under the result counts what changed, so you can tell a light touch from a heavy rewrite.

Example

Input

#Release notes
* Faster exports
+ New captions



## Fixes
Audio drift fixed.

Result

# Release notes

- Faster exports
- New captions

## Fixes

Audio drift fixed.

Reported as: Fixed 2 bullets, 1 heading, 3 blank-line fixes. The three empty lines collapse to one, and blank lines are added after each heading.

How to use Markdown Cleaner

  1. Paste your Markdown, click Open file, or click Use example.
  2. Open More options to switch off any fix you don't want: Use - for every bullet, Fix “#Heading” without a space, or Normalize blank lines.
  3. Click Copy, or Download .md.

Good to know

  • It doesn't renumber ordered lists, rewrap long lines, or change emphasis markers such as __bold__ to **bold**.
  • Bullet changes only go one way, to -. There is no option to standardize on * instead.
  • Pipe tables pass through unchanged. To realign a ragged table, paste it into the Markdown Table Generator.

Questions about Markdown Cleaner

Why doesn't my Markdown heading render?

Most renderers need a space after the # signs, so #Setup shows as plain text while # Setup becomes a heading. The cleaner adds that space when the line looks like a heading, plus a blank line before and after it.

Should I use - or * for bullet points?

Either works, but switching markers partway through a list starts a new list in CommonMark renderers, which can change spacing. Pick one. Hyphens are the usual choice in style guides and are what this tool writes.

How many blank lines should go between Markdown blocks?

One. A single blank line separates paragraphs, lists and headings in every renderer, and extra ones change nothing in the output while making the source harder to scan and diff.

Can I clean up Markdown copied from ChatGPT or another AI chat?

Yes. Paste it in and the bullets, heading spacing and blank lines are made consistent. It won't remove bold labels or emoji, so edit those by hand if your style guide avoids them.