Free tool
Markdown Cleaner
Paste answers from ChatGPT, Claude, Gemini… and get clean Markdown — headings, lists, tables and code blocks preserved. No need to go back to the AI tab.
- Runs in your browser
- No data sent to a server
- Free, no sign-in
Paste content
Ctrl/⌘ + VClean Markdown
Everything runs in your browser. Nothing is sent to a server or stored.
Why copying from ChatGPT/Claude loses formatting
Chat pages render HTML. The original Markdown is not in the clipboard, so pasting into Word, Notion or an editor often gives messy rich text or plain text: headings become bold lines, lists lose bullets, code blocks collapse into a paragraph.
The “Copy” button inside a code block usually returns code only. Copying the whole answer with the mouse may return plain text depending on the browser. That is why people go back to the AI tab and ask it to “output Markdown” again.
What this tool handles
- Headings, paragraphs, bold, italic, inline code.
- Nested lists, checklists, blockquotes.
- Code blocks with language and indentation preserved.
- HTML tables → GFM Markdown tables.
- Links, images, KaTeX formulas when the source has TeX annotations.
- Invisible characters, NBSP, “Copy code” lines and extra blank lines removed.
If the clipboard has no HTML, the tool cleans plain text instead: bullet • becomes -, decorative lines are dropped and spacing is collapsed.
Use it in three steps
- Select the answer on ChatGPT/Claude and press Ctrl/⌘ + C.
- Paste into the left pane. The tool reads the clipboard HTML and converts it.
- Check the right pane, then Copy Markdown or Download .md.
Tips for the cleanest result
- Select only the content you need, not the sidebar, buttons or model name.
- For code, copy the whole block so the language class is kept; fix it in the Markdown pane if missing.
- Use Preview to check tables and code before pasting into your blog.
- If the result is plain text, select the answer again instead of using the Copy button.
Privacy
The tool runs entirely client-side: no backend, no API, no stored content. You can go offline after the page loads and it still works.
FAQ
Common questions
Does the tool send my content to a server?
No. Conversion runs in JavaScript in your browser. No API, no storage, no analytics reading the content.
Why do I get plain text?
The browser only shares HTML when the clipboard has rich content. If you use the code block Copy button or copy from another app, the clipboard may only contain text. The tool then cleans lists and blank lines; select the answer and press Ctrl/⌘+C to keep headings/tables/code.
Does it keep code blocks and language?
Yes, when the HTML has a language-* class (ChatGPT/Claude usually do). It outputs a fenced code block with the language. If missing, edit it in the Markdown pane.
Does it support tables and formulas?
Yes. HTML tables become GFM tables. KaTeX formulas are kept as $...$ or $$...$$ when the source has TeX annotations.
Is it free?
Yes. No sign-in, no usage limit. If it helps, read the posts or share the tool.
Read more
Why I built this tool
The article covers the copy-format problem, the fix, and what to check before publishing.