Gemini to Markdown Converter

This Gemini to Markdown converter turns Gemini answers and chats into clean Markdown. Paste a reply, or upload your Google Takeout export to save every Gemini chat as a .md file. Code, tables and math are kept, and leftovers like [cite_start] and [cite: 1] are removed.

  • Paste or upload Takeout
  • Stays on your device
Use the copy button under a Gemini answer, or select the chat and press Ctrl+C (⌘+C on a Mac). Markdown you paste is cleaned too.

Markdown options
Math formulas
Web citations

How to convert Gemini to Markdown

Saving a Gemini answer as Markdown takes three steps, on a computer or a phone.

  1. Copy from Gemini

    Click the copy button under an answer, or select part of the chat or the whole conversation and press Ctrl+C (⌘+C on a Mac).

  2. Paste it into the converter

    Formatting becomes Markdown as you paste, and Gemini’s citation marks are removed. The “You said” and “Gemini said” lines a selected chat carries become You and Gemini headings.

  3. Copy or download the Markdown

    Choose how math should look, then copy the result or download it as a .md file.

Example

This sample has 5 Gemini leftovers: [cite_start], three [cite: …] marks and ?code_reference&code_event_index=1 stuck to the code block’s language. The converter removes all 5, turns “Gemini said” into a heading and keeps the 3 formulas in $ form.

Convert a Gemini answer with [cite] marks

Gemini to Markdown converter features

One tool for a single answer or your whole Gemini history, with the clean-up Gemini’s own copy and Export to Docs don’t do.

  • [ ]

    No more [cite] marks

    [cite_start], [cite: 1] and [cite: 2, 3] are removed, with the space before them.

  • 2

    Paste or upload

    Convert one answer, a whole chat, or every chat in your Google Takeout export.

  • $

    Math that renders

    Formulas become $…$ and $$…$$ for Obsidian and GitHub, or keep their delimiters.

  • .md

    Files or one document

    Download chats as separate .md files in a .zip, or together as one Markdown file.

How to remove [cite_start] and [cite: 1] from Gemini text

These marks show where Gemini quoted a source, often a file you uploaded. Gemini’s screen hides them, but copied text, and answers sent to Google Docs, can keep them. Paste the text here and they’re gone.

LeftoverWhat it isWhat the converter does
[cite_start]The start of a passage Gemini based on a sourceRemoves it. A space before it goes too, unless a word follows.
[cite: 1], [cite: 2, 3], [cite: 4-6]The end of that passage, with the numbers of its sourcesRemoves it, with the space before it, so “total [cite: 3]:” becomes “total:”.
python?code_reference&code_event_index=1Text Gemini adds to a code block’s language when it ran the codeCuts it back to the language name, so the block is highlighted again.
“You said” and “Gemini said” linesHidden labels copied with a selected chatTurns them into ## You and ## Gemini headings.

The numbers in [cite: …] point to sources that only exist on Gemini’s screen, so they can’t become links. Gemini shows its sources under the answer; copy any you need from there.

How to export all your Gemini chats to Markdown

Gemini can send one answer to Google Docs, but your whole history comes from Google Takeout. Pick the right options and the file converts here.

  1. Open Google Takeout

    Go to takeout.google.com and click Deselect all. Don’t use the separate Gemini entry: it holds your Gems, not your chats.

  2. Choose My Activity → Gemini Apps

    Tick My Activity, click All activity data included, deselect everything and tick only Gemini Apps.

  3. Switch to JSON

    Click Multiple formats next to My Activity and change the activity records format from HTML to JSON. Then create the export and download the .zip when Google emails you.

  4. Drop it into the converter

    Choose Upload export and drop the Takeout .zip, or the MyActivity.json from its Gemini Apps folder. Pick chats and download them as .md files.

What the converter turns into Markdown

Everything Gemini shows in an answer has a Markdown equivalent. This is what you get for each part.

In GeminiMarkdown you getGood to know
Headings## HeadingEvery level is kept, from # to ######.
Bold, italic, strikethrough**bold**, *italic*, ~~struck~~Asterisks that are part of the text are escaped, so they don’t turn into formatting.
Bulleted and numbered lists- item, 1. itemNested lists keep their indent. Checklists become - [x] and - [ ].
Code blocksA fenced block named with its language, such as pythonThe ?code_reference… text is removed from the language.
Tables| Tool | Price | and a | --- | rowRight and centre alignment are kept, and a | inside a cell is escaped.
Math (formulas)$x^2$ and $$…$$, or \(x^2\) and \[…\]Your choice. The LaTeX is kept as Gemini wrote it.
Links[text](https://…)Only web and email links are kept.
Source marksNothing[cite_start] and [cite: 1] are always removed.
Who said what## You and ## GeminiAdded from “You said” and “Gemini said”, and in every exported chat.

Fix Gemini math for Obsidian and GitHub

Gemini writes formulas in LaTeX, mostly between dollar signs, sometimes as \( … \) or \[ … \]. Many Markdown apps don’t read every way of writing math. Obsidian and GitHub use dollar signs: $…$ for a formula inside a sentence and $$…$$ for one on its own line.

With $ … $ · $$ … $$ selected, the converter writes all Gemini math that way and keeps the LaTeX inside exactly as it was:

  • \( … \) becomes $…$ and \[ … \] becomes $$…$$.
  • Double dollar signs in the middle of a sentence become single ones, $$x$$ → $x$, because Obsidian puts $$…$$ on a line of its own.
  • Prices stay prices. A dollar sign before a number, as in $5, becomes \$5, so the text between two prices isn’t read as a formula. A formula that starts with a digit, such as $2^{10}$, is kept.
  • Code is left alone. Nothing inside code blocks or inline code is changed.

Choose \( … \) · \[ … \] to keep the delimiters as they were, for example when the text is going into a LaTeX document.

What’s included when you convert a Google Takeout export

Takeout stores your Gemini history as an activity log, not as finished chats: one entry for each prompt, with Gemini’s answer as formatted text. The converter rebuilds the chats:

  • Entries are grouped by chat, using the chat’s web address when Takeout includes it, and put back in the order you sent them.
  • Each chat is named after your first prompt, because Takeout doesn’t store chat titles.
  • Answers are converted to Markdown the same way as a paste: headings, lists, tables, code and links.

Other activity, such as feedback you gave, is skipped. Takeout keeps only what’s in your Gemini Apps activity, so chats you deleted, or made while that activity was turned off, aren’t in the export.

Save Gemini chats in Obsidian, Notion or GitHub

Markdown opens in almost any notes app, so a converted chat stays readable long after you stop using Gemini.

  • Obsidian: download your chats as a .zip, unzip it into your vault and keep YAML front matter turned on. Each note then starts with its title, dates, model and conversation ID, which Obsidian shows as properties you can search.
  • Notion: use Notion’s import, choose Markdown and pick the .md files. Each file becomes a page.
  • GitHub and VS Code: the files use GitHub Flavored Markdown, with tables, task lists and fenced code, and math in $ form renders on GitHub.

Exported files are named with the chat’s date and title, such as 2026-03-12 Trip ideas.md, so they sort by date.

Gemini to Markdown FAQ

What does [cite_start] mean in Gemini?

It marks where a passage based on a source starts. Gemini hides it on screen, but it can stay in copied text and in answers exported to Google Docs. The converter removes it.

What is [cite: 1] in Gemini text?

The end of a cited passage, with the number of the source Gemini used, often a file you uploaded. The number only means something on Gemini’s screen, so the converter removes the mark.

Can Gemini export a chat as Markdown?

Not directly. Share & export under an answer sends that one answer to Google Docs or Gmail. Copy the chat and paste it here, or upload your Takeout export, to get Markdown.

How do I export all my Gemini chats?

Use Google Takeout: choose My Activity with only Gemini Apps selected, set the format to JSON, and upload the .zip here. The separate Gemini entry in Takeout only exports your Gems.

Why is my Gemini Takeout export empty?

Usually the wrong box was ticked. Your chats are under My Activity → Gemini Apps, not under the Gemini entry. Chats made while Gemini Apps activity was turned off aren’t saved there.

Can I upload the HTML version of Takeout?

No, the converter reads the JSON version. In Takeout, click Multiple formats next to My Activity and choose JSON before you create the export.

Why don’t Gemini formulas show in Obsidian?

Obsidian reads $…$ and $$…$$, and Gemini sometimes writes \( \) or \[ \], or a formula that starts with a number. Keep the $ option selected and the converter fixes the delimiters.

Does it work with other chatbots?

Yes. Pasting works with formatted text from most sites. For ChatGPT and Claude, use the [ChatGPT to Markdown converter](tool:chatgpt-to-markdown-converter) or the [Claude to Markdown converter](tool:claude-to-markdown-converter).

Are my chats uploaded or saved?

No. The converter runs in your browser. Pasted text and export files are read on your device and never sent to our server.

Sources and references

  1. View related sources from Gemini Apps, Gemini Apps Help
  2. How to download your Google data, Google Account Help
  3. Advanced formatting syntax, Obsidian Help
  4. GitHub Flavored Markdown Spec, GitHub