How to convert Google Keep notes to Markdown files
Move Google Keep to Markdown: export with Google Takeout, convert the notes with Pandoc or a short script, and turn checklists into task lists.

To convert Google Keep notes to Markdown, export Keep with Google Takeout, unzip the archive, and convert the notes in its Keep folder. For a quick result, run Pandoc on the .html files. For a cleaner one, run a short script on the .json files that writes each checklist as a Markdown task list (- [ ] and - [x]) and puts each note in a folder named after its first label. Keep's export does not arrive as Markdown, so one of these conversion steps is always part of the move.
What does Google Takeout export from Keep?
Takeout exports your Keep notes with their text, checklists, attachments and labels. The archive can also hold archived notes, which the script below files in an Archive folder, and notes still in the trash, which it skips. Google's Keep export page (checked November 2026) lists what a download includes:
- Note text and list items
- Attachments: voice recordings, drawings and images
- Note color
- Whether a note is pinned or archived
- Note collaborators
- Your list of note labels
Google's help pages don't describe the file layout inside the archive. Tools that import Keep exports, such as Trilium's Keep import guide (checked November 2026), work with an .html file and a .json file per note, plus any attachments. Open your own Keep folder before you convert, since Google can change the format.
Work and school accounts may include less of this data. Google's page says some data may not be included and points administrators to a separate export.
How do you export Keep with Google Takeout?
Select only Keep in Takeout, create the export, and download the archive from the email Google sends. Google's download guide (checked November 2026) recommends doing this from a desktop computer rather than a phone.
- Sign in to your Google Account and go to takeout.google.com.
- Clear the other products so that only Keep is selected.
- Select Next step.
- For Delivery method, choose Send download link via email, or another destination you prefer.
- Keep the file type as .zip. Google notes that zip files "can be opened on almost any computer."
- Select Create export.
- When the email arrives, select Download archive and save it.
- Unzip the archive and open the Keep folder inside it.
Which route should you pick, HTML or JSON?
Pick HTML if you want results in minutes and your notes are mostly text. Pick JSON if you have many checklists or rely on labels, since the JSON files state each item's checked status and each note's labels as separate values.
| HTML with Pandoc | JSON with a script | |
|---|---|---|
| Needs | Pandoc | Python 3 |
| Setup time | A few minutes | A few more minutes |
| Text and formatting | Converted from the HTML | Text as written in Keep |
| Checklists | Depends on how the HTML marks them; check the result | Exact - [ ] and - [x] |
| Labels | Wherever the HTML shows them | Folders, or a line in the note |
| Archived and trashed notes | Converted like any other note | Archived to a folder, trashed skipped |
How do you convert the HTML files with Pandoc?
Run Pandoc on each .html file with GitHub Flavored Markdown as the output format. One command handles one note, and a short loop handles the folder.
For a single note:
pandoc "Groceries.html" -f html -t gfm --wrap=none -o "Groceries.md"
For every note, save this as keep_html.py next to the Takeout folder and run python3 keep_html.py:
import pathlib
import subprocess
src = pathlib.Path("Takeout/Keep")
out = pathlib.Path("keep-markdown")
out.mkdir(exist_ok=True)
for html in sorted(src.glob("*.html")):
md = out / (html.stem + ".md")
subprocess.run(
["pandoc", str(html), "-f", "html", "-t", "gfm", "--wrap=none", "-o", str(md)],
check=True,
)
Pandoc's installing page has installers for Windows and macOS, and brew install pandoc works on a Mac with Homebrew (checked November 2026).
Then open a few results next to the same notes in Keep. Look at one checklist in particular. If its items came out as plain bullets or with box symbols, change them to - [ ] and - [x] by hand, or use the JSON route for notes with checklists.
How do you convert the JSON files with a script?
Read each .json file, write the title as a heading, write the text or checklist below it, and save the result in a folder for its label. The script below does that in about 40 lines.
Google doesn't document the JSON fields. The script uses the names that open-source Keep importers read: title, textContent, listContent (each item has text and isChecked), labels (each with a name), isArchived and isTrashed. Open one of your .json files in a text editor first and confirm those names appear.
- Install Python 3 if
python3 --version(orpython --versionon Windows) doesn't print a version. - Save the script as
keep2md.pynext to theTakeoutfolder. - Run
python3 keep2md.py Takeout/Keep keep-markdown. - Open the new
keep-markdownfolder and check a few notes against Keep.
import json
import pathlib
import re
import sys
src = pathlib.Path(sys.argv[1]) # the Keep folder from Takeout
out = pathlib.Path(sys.argv[2]) # a new folder for the Markdown files
for path in sorted(src.glob("*.json")):
note = json.loads(path.read_text(encoding="utf-8"))
if note.get("isTrashed"):
continue
title = note.get("title") or path.stem
lines = ["# " + title, ""]
if note.get("textContent"):
lines.append(note["textContent"])
for item in note.get("listContent", []):
box = "x" if item.get("isChecked") else " "
lines.append("- [" + box + "] " + item.get("text", ""))
labels = [label["name"] for label in note.get("labels", [])]
if len(labels) > 1:
lines += ["", "Labels: " + ", ".join(labels)]
if note.get("isArchived"):
folder = out / "Archive"
elif labels:
folder = out / labels[0]
else:
folder = out / "Unlabeled"
folder.mkdir(parents=True, exist_ok=True)
name = re.sub(r'[\\/:*?"<>|]', "-", title).strip() or path.stem
target = folder / (name + ".md")
if target.exists():
target = folder / (name + " (" + path.stem + ").md")
target.write_text("\n".join(lines) + "\n", encoding="utf-8")
print("wrote", target)
Notes without a title use the export's file name. Two notes with the same title in the same folder both survive: the second gets the export file name added in parentheses.
How do Keep checklists become Markdown task lists?
Each checklist item becomes one task list line: - [ ] for an unchecked item and - [x] for a checked one. A Keep grocery list comes out like this:
# Groceries
- [ ] Milk
- [x] Eggs
- [ ] Coffee
Task lists are part of GitHub Flavored Markdown, so most Markdown editors show them as checkboxes, and in a plain text editor they are still readable. The task lists page covers the syntax. The script writes a flat list, so if you indented items under other items in Keep, check those notes and indent the child lines by hand.
How do Keep labels become folders?
A note can have several labels, but a file sits in one folder. The script puts each note in a folder named after its first label, adds a Labels: line when there are more, sends archived notes to Archive, and skips anything in the trash.
If that doesn't fit how you used labels, two other layouts work:
- One folder, labels in the text. Put every note in one folder and keep labels as words in the note, such as
Labels: recipes, weekly. A folder search for the label finds them. - Folders by year. If you mostly find notes by the date you wrote them, group the files by year and keep labels as text.
For more on folder layouts that last, see how to organize Markdown notes.
What doesn't carry over?
Anything that is a Keep feature rather than note content stays behind or needs manual work:
- Images, drawings and voice recordings are separate files in the export. The script doesn't link them. Copy the ones you want into an
attachmentsfolder and add a link such asto the note. - Colors and pins are display settings with no Markdown equivalent.
- Collaborators: sharing does not carry over. Each person keeps their own copy.
- Reminders are not on Google's list of what the download includes, so note any you still need before you leave Keep.
Keep notes in Noteline
Noteline, which we make, opens the converted folder as it is (Cmd+O on a Mac, Ctrl+O on Windows and Linux), task list checkboxes can be clicked while you edit, and images linked in a note show their alt text rather than the picture. Its iPhone, iPad and Android apps keep notes as .md files on the device. There is no built-in sync, so to use the same folder on several computers, put it in iCloud Drive, Dropbox, OneDrive or a Git repository, as described in where notes are stored.