Kindle Highlights Exporter
Operator: Abdulla Al Fahad. How tools are built and checked
The file My Clippings.txt on a Kindle is one long list in the order you made the marks, with the same sentence repeated each time you stretched or trimmed a highlight and a note stored as an entry of its own. Pasted into another app it is a mess of duplicates and orphaned notes.
This page reads the file entry by entry, works out which entries belong together, and gives you each book as a tidy list.
The file grows for the whole life of the device, so one export can hold years of reading; the book list lets you export only the titles you want.
Key features
- Entries read in English, German, French, Spanish, Italian, Portuguese and Dutch, including the date line, the page and the location range
- Highlights grouped by book and author, with books you can switch off before exporting
- Repeated edits of one highlight folded into the newest version, and each note attached to the highlight whose location contains it
- Markdown with one file per book in a ZIP, a CSV, a JSON file, and an Anki import CSV with the book as a tag
- Order by location in the book or by date added; bookmarks are counted but not exported
How My Clippings.txt entries are read
An entry is a title line such as 'Pride and Prejudice (Jane Austen)', an information line that starts with a dash, a blank line, the text, and a line of ten equals signs. The information line gives the kind, place and time, as in 'Your Highlight on page 3 | Location 41-42 | Added on Monday, March 4, 2024 10:11:12 AM' or its German equivalent 'Ihre Markierung bei Position 88-89 | Hinzugefügt am ...'. The author is the last parenthesised group of the title line, unless it holds a digit such as a year. Dates are read by finding the year, the time and a month name in any of the seven languages, accents ignored; purely numeric dates are ambiguous, so you choose day first or month first. A range Kindle abbreviates as 1234-36 is read as 1234-1236. An entry in another language, such as Japanese, is kept as a highlight when it has text and as a bookmark when it has none, and the page counts them.
How it works
Within a book, highlights are processed in the order they were made. A new highlight replaces an earlier one when their location ranges overlap and their text is related: one contains the other, or at least three words and 60% of the shorter text's words are shared. The newest wins, so an extended highlight does not leave its shorter ancestor behind, and a highlight you trimmed keeps the trimmed text. Two exact copies at the same location are collapsed.
A note is attached to the highlight whose range holds the note's location, with one location of slack at each end; if several qualify, the one that ends exactly at the note's location is chosen. A note that matches nothing stays in the list as a note.
The Markdown export puts the title as a heading, the author in italics, each highlight as a blockquote with its page, location and date, and notes as bold 'Note:' lines. Characters that Markdown reads as formatting are escaped, so a highlight containing an asterisk or an underscore comes out as it was written.
Common use cases
- A reader with 1,900 entries across 40 books exports Markdown per book into an Obsidian vault and keeps only the books they plan to review.
- A student exports the Anki CSV for one textbook: the highlight is the front, and the note, title, author and location are on the back.
How to use this tool
- Copy documents/My Clippings.txt from the Kindle over USB and drop it on the page, or press Load an example.
- Check the counts and untick any books you do not want.
- Choose Markdown (ZIP), CSV, JSON or Anki CSV.
Example
Load an example: 7 entries from three books, two edits of the Pride and Prejudice opening, its note and a bookmark
Pride and Prejudice has a highlight at location 41-42, a longer version of it at 41-43 added a minute later, a note at 43 and a bookmark; Moby-Dick has two highlights; Walden has one, written in German.Counts and files
7 entries read in 2 languages (English and German) across 3 books: 4 highlights kept, 1 earlier edit folded, 1 note attached, 1 bookmark not exported. The ZIP holds 'Moby-Dick; or, The Whale - Herman Melville.md', 'Pride and Prejudice - Jane Austen.md' and 'Walden - Henry David Thoreau.md'. The Pride and Prejudice file has one blockquote, the 41-43 version, with the note under it. Turning folding off gives 5 highlights, and attaching off lists the note separately.Common pitfalls
The date has no time zone. Kindle writes the device's local time, and that is what appears in the export.
Two separate highlights whose locations touch and whose text shares many words can be taken as one edit. If that happens, turn off Fold repeated edits.
The title is taken as the book's metadata wrote it, so two editions of one book with slightly different titles appear as two books.
A card field that starts with =, +, - or @ is saved with an apostrophe in front so that a spreadsheet opening the CSV shows it as text; Anki keeps that apostrophe, so it appears on the card.
- Leave Fold repeated edits on for a first export: the CSV then shows, in its edits_merged column, how many earlier versions each highlight absorbed, so you can see where the folding acted.
- For Anki, tick Allow HTML in fields when importing; the cards use line breaks and italics for the source.
Common errors and how to fix them
- No clippings found
- The text lacks the ten-equals-sign separator lines. My Clippings.txt must be the original file from the Kindle, not a copy exported from the app.
- This file contains binary data, so it is not a Kindle clippings file
- Open the .txt file, not a .mobi or .azw3 book, or a file inside the system folder.
- 3 entries have an information line in a language or wording this page does not know
- They are still kept as highlights or bookmarks, but their dates and locations may be missing. Check them in the CSV before relying on them.
Best practices
- Untick books you only sampled; each one that stays adds a file to the Markdown ZIP.
- Export CSV as well as Markdown the first time: it carries the location range and the number of folded edits next to every highlight, which is useful for checking the folding.
Highlights from PDFs and personal documents
A highlight in a PDF or a sideloaded document has a page but no location, and the entry may read 'Your Clip' instead of 'Your Highlight'. Both are read; entries without a location are listed after the located ones when sorting by location, and cannot be folded or matched to notes because there is nothing to compare.
Anki cards
Each highlight becomes one card. The front is the highlight, the back is its note (if any) followed by the source in italics, giving title, author, page, location and date, and the tag is 'kindle' plus the book title with every run of non-letters turned into an underscore, cut at 60 characters. Notes that are not attached to a highlight do not become cards. Text is HTML-escaped, which is why the import needs Allow HTML in fields ticked.
Frequently asked questions
Why do some highlights read "You have reached the clipping limit for this item"?
Publishers of some titles cap how much of a book can be exported, and once a title passes its cap the Kindle writes that sentence into My Clippings.txt in place of the highlighted text. The text itself is not in the file, so no tool can recover it from there. This page leaves those entries out of the highlights and reports how many it skipped; the Kindle device or app still shows what you marked.
Why are my library loans and Kindle Unlimited books missing or nearly empty?
This page can only show what is inside My Clippings.txt, and the Kindle decides what it writes there. Highlights made in the Kindle app on a phone or tablet are stored with your account and are not added to the file on a Kindle you plug in, and a borrowed or subscription title can write fewer entries than a book you bought, or run into the clipping limit described above. If a title is missing here, it is missing from the file; export from the device the highlights were made on.
Does anything from my account or Amazon get read?
No. The page reads only the text of the file you give it. It cannot see purchases, highlights that were never synced to the device, or highlights stored only on Amazon's website.