Tool: Preserve Markdown Formatting from AI with Paste to Markdown
Table of Contents

I. Why the Table Keeps Breaking #
A table copied from ChatGPT or Gemini breaks wherever you paste it. Here is why, plus a small tool that turns it into clean Markdown, keeping tables, code, diagrams and math.
You ask ChatGPT or Gemini for a comparison table, and it gives you exactly what you wanted. You select it, copy, paste it into an editor, and the table falls apart into loose lines. Every word made it. Only the table did not.
The culprit is the clipboard. The clipboard is the temporary spot that holds whatever you just copied until you paste it. When you copy from a web page, the browser puts two versions there: plain text and HTML. HTML is the language web pages are built with, so this version keeps the table’s structure but carries every tag and styling rule of the original page.
The app you paste into picks one of the two. Picture an office lunch in a box with three compartments: rice, soup, vegetables. The plain-text version is tipping it all into one bowl: every dish is there, but the compartments are gone. The HTML version keeps the box, plus the bag, the stickers and the restaurant’s flyer. Either way, you rebuild the table by hand.
This kept happening until I got fed up, so I wrote a tool called Paste to Markdown: https://tools.vinhmdev.com/clipboard2markdown
Markdown is a way to format text with a few simple symbols, such as # for a heading or | between table columns. It is just plain text, so it carries no junk, and places that read Markdown, such as GitHub, show the formatting again. GitHub is the website where software teams store their code. In lunch terms, Markdown is your own box: still divided, no flyer.
The tool takes the HTML version, whether you copied from the web, Word, Excel or an AI answer, and turns it into clean Markdown. The screen splits in two: editor on the left, preview on the right, updating as you type.
Tables are the easy part. Code, diagrams and math are where things usually break.
II. What the Tool Can Do #
Settings are usually the least-visited corner of any app. Here you can skip them: the options below sit behind the gear icon ⚙️, and all of them are on by default.
- Auto-convert to Markdown on paste. Press Ctrl+V and you get clean Markdown. Turn it off to paste plain text as usual.
- Mermaid and LaTeX. Mermaid is a way to draw diagrams from a few lines of descriptive text. LaTeX is a way to write math formulas with letters and symbols. With them on, the preview draws the diagrams and formulas.
- Sync scroll. Scroll one side and the other follows, handy for long documents.
For anyone writing technical documents, the best part is that code blocks, diagrams and formulas survive the conversion intact. A code block is a frame holding a piece of code, and it must keep every space exactly. Many other converters add a \ before characters like _, because Markdown treats them as formatting symbols, and the formula breaks. This tool recovers the original formula stored in the page and leaves it as is.
Below the preview are export buttons for Markdown, Word and PDF files (PDF goes through the browser’s print dialog). The screenshot below shows the tool with its settings panel open.

III. Three Steps to Use It #
- Copy: select the part of the ChatGPT or Gemini answer you need, and copy it.
- Paste: open the tool and press Ctrl+V in the editor.
- Get the result: hit the orange Copy Markdown button, then paste straight into GitHub or a Hugo blog. Hugo is the blog-building software this very blog runs on.
Three steps, and not one of them is redrawing a table.
Next time a table from an AI falls apart on paste, you know why: the receiving app took the plain-text version. Run the content through the tool first, or use the Word export button if the destination is Word.