iLoveMD About iLoveMD CLI
100% in your browser

Clean Up AI Chat Output as Markdown

Paste text copied from an AI assistant chat, in a desktop app, a browser, or a terminal, and get clean, portable Markdown. Invisible characters and citation leftovers are removed, lists and tables are tidied, and math delimiters are converted. Everything runs in your browser; nothing is uploaded.

  • Always free
  • No uploads
  • No sign-up
  • No cookies

Cleaning up AI chat output as Markdown turns text copied from an assistant such as ChatGPT, Claude, Gemini, or Copilot into tidy, portable Markdown. iLoveMD does it entirely in your browser: paste the copied text and it removes the invisible characters and citation leftovers that chat apps leave behind, converts \( \) and \[ \] math delimiters to $ and $$ where the content is clearly math, turns bullet glyphs into - list items, closes a code fence left open at the end, and adds the missing separator row to pipe tables. The cleanup steps skip fenced code blocks and inline code. Because the conversion runs locally in JavaScript, your text is never uploaded to a server and there is no sign-up. Copy the result or download it as a .md file.

← All conversion tools

Paste your chat text below, or drop a .txt or .md file here .txt · .md
No files selected

AI Chat

Markdown Preview

Export Your Results

AI Chat to Markdown Docs

Text copied from an AI assistant chat often carries invisible characters, citation leftovers, and formatting that breaks outside the chat window. This tool cleans the pasted text into portable Markdown. Paste it and everything runs in your browser; nothing is uploaded.

What it cleans up

Pasted chat text is tidied in these ways:

  • Invisible characters and citation leftovers such as zero-width characters, private-use glyphs, and citation markers are removed.
  • Math delimiters written as \( \) and \[ \] become $ and $$ where the content is clearly math, so the math works in Markdown tools that support it.
  • Lists: bullet glyphs such as • become - list items, and lists with a blank line between every item are tightened.
  • Code fences and tables: a code fence left open at the end is closed, and pipe tables missing their separator row get one.
  • Whitespace: trailing spaces and extra blank lines are trimmed, and two-space line breaks are kept.

The cleanup steps skip fenced code blocks and inline code.

Options options

  • Straighten curly quotes (off by default): replaces curly quotation marks with straight ones.
  • Turn bold-only lines into headings (off by default): a line that is only bold text becomes a Markdown heading.

Limits & privacy

  • Safe to paste elsewhere. HTML tags in the pasted text are neutralized (shown as text), and links with script-style schemes are disabled.
  • Input is capped at 1 MB. A visible note appears when the text is cut.
  • Privacy: the text is processed entirely in your browser. Nothing is uploaded, and there is no sign-up.

How do I clean up AI chat output as Markdown?

1

Copy the answer from the chat

Select the assistant's answer in ChatGPT, Claude, Gemini, Copilot, or a similar app and copy it. Text selected in a terminal session works too.

2

Paste it here

Paste into the box. Invisible characters and citation leftovers are removed, lists and tables are tidied, and math delimiters are converted. Nothing is uploaded.

3

Copy or download the Markdown

Copy the clean Markdown to your clipboard or download it as a .md file.

Frequently asked questions

What does it remove from pasted chat text?

Zero-width characters, private-use glyphs, and citation markers that chat apps leave in copied text. Trailing spaces and extra blank lines are trimmed too.

What happens to math?

Where the content is clearly math, the \( \) and \[ \] delimiters are converted to $ and $$, so the math works in Markdown tools that support it. A line that already contains a $ is left as it is.

Does it change my code blocks?

No cleanup step runs inside fenced code blocks or inline code. Two safety rules can still touch code: script-style links are disabled everywhere, and HTML tags are neutralized in code that is not inside a closed code fence.

Does it work with text copied from a terminal?

Yes. Text copied from an AI assistant running in a terminal such as iTerm2 is cleaned the same way as text copied from a desktop or web chat app.

Are the options on by default?

No. Straightening curly quotes and turning bold-only lines into headings are both off until you turn them on.

Is the output safe to paste elsewhere?

HTML-like text outside code is escaped so that common Markdown renderers show it as text, and links with script-style schemes are disabled. Renderers differ, so if you publish Markdown from a source you do not trust, use a renderer that sanitizes HTML.

Is there a size limit?

Input is capped at 1 MB, and a visible note appears when the text is cut.

Does my text get uploaded?

No. It is processed entirely in your browser. Nothing is sent to a server.

Last updated: November 14, 2026