Clean Markdown
Tidy messy Markdown output from ChatGPT, Claude, Gemini and other LLMs. Remove redundant blank lines, unify list markers, strip extra rules and trailing AI notes — keep code blocks intact.
All processing on this page runs locally in your browser unless noted otherwise.
Input (paste messy AI Markdown)
Cleaned output (live)
How to use
- Click Fill Sample or paste raw Markdown from an AI chatbot / import a .md file.
- Toggle clean options — the right pane updates live.
- Copy the result, download .md, or open it in the live preview editor.
- Need token / API cost estimates next? Count tokens locally on Token Workbox.
Example Markdown
# Weekly update
Status: on track.
## Done
* Shipped landing page
+ Fixed bug
---
---
Hope this helps! Let me know if you need anything else.
FAQ
Is my text uploaded?
No. Cleaning runs entirely in your browser.
Will code blocks be changed?
With “Preserve formatting inside code blocks” enabled, fenced code keeps its original indentation and spacing.
What about ChatGPT / Claude / Gemini output?
Extra blank lines, mixed list markers, redundant rules and trailing “hope this helps” notes are common — those options are on by default.