How can I rename flashcards in a CSV without losing their review history?

I keep a small Anki deck of software terms and shortcuts, and I maintain the source notes in a spreadsheet. My CSV currently has two columns, Front and Back. I use Front as the first field when importing, and I’ve already reviewed most of the cards.

For example, one card currently says bloxstrap on the front. I’d like to rename it to Bloxstrap — what does it do? and update the answer at the same time. Since Anki uses the first field to match existing notes by default, I’m concerned that importing the revised CSV will create a second card and leave the review history attached to the original.

What’s the safest way to migrate the existing notes so I can edit their titles in future imports? Can I export the notes with their Anki IDs, add those IDs to my spreadsheet, and re-import the updated text? I’d like to test this on one card first and confirm that its review history and next due date carry over.

You’re right, that would probably create a separate note. [Each row in your spreadsheet is a note, not a card.]

If it’s just one note, you can change it manually in the file and in the field of the note, and you’ll be all set.

If you think you’ll do this often, you might want to consider re-exporting your file periodically with a GUID column to make sure your notes are identifiable. Then that will be your new spreadsheet to use going forward. See Text Files - Anki Docs .