A complete UTF-8 sample you can copy and check
This original example has three notes with two fields each. Its headers select a semicolon separator and turn HTML off. The final answer contains a semicolon, so the complete field is enclosed in double quotes.
#separator:Semicolon
#html:false
"What are isotopes?";"Atoms of the same element with different numbers of neutrons."
"How is density calculated?";"Mass divided by volume: ρ = m/V."
"How can a field contain a semicolon?";"Enclose the field in double quotes; as in this row."Download the complete original CSV sample. Map the first column to the question field and the second to the answer field. Import the three notes into a separate test profile and inspect ρ and the semicolon inside the last answer. This file does not require a row of column labels to become study content.
How should an Anki import file be structured?
A simple Anki text import has one note per line and one field per column. For a basic question-and-answer flashcard, two fields are enough: the question and its answer. A consistent separator, such as a tab, comma, or semicolon, keeps the fields apart. The file must be plain text saved in UTF-8 encoding.Source Anki project (2026). Text Files. Anki Manual. docs.ankiweb.net · in the sources list
A minimal semicolon-separated line could read: “What is an isotope?;Atoms of the same element with different numbers of neutrons”. During import, the first field can go on the front and the second on the back of the note. A header row is not always necessary. Anki also supports file headers when you want to specify column names or import settings explicitly.Source Anki project (2026). Text Files. Anki Manual. docs.ankiweb.net · in the sources list
Should I use CSV or TXT?
CSV is a text file whose fields are separated by a delimiter. TXT works too when it follows the same plain-text structure. Anki can read commas, semicolons, and tabs in text files; the file extension alone does not guarantee which delimiter was used. What matters is that every data row follows the same column pattern.
Spreadsheet programs may export a different separator depending on your regional settings. Check the saved file or Anki’s import preview after exporting. If a row appears as a single field, the detected separator is wrong. You can change it in the import options, unless a file header sets it (case 1), and inspect the preview again before importing the full collection.Source Anki project (2026). Text Files. Anki Manual. docs.ankiweb.net · in the sources list
Which columns does a flashcard note need?
A basic note needs a question and an answer. A third column can hold a tag or category. In the import dialog, map each file column to a field in the selected note type. Additional columns are not automatically useful: Anki infers the field count from the first non-commented data row and ignores extra content in later rows.Source Anki project (2026). Text Files. Anki Manual. docs.ankiweb.net · in the sources list
A tag helps you filter notes later, but it does not replace a content field on the card. If a note type creates more than one card from a note, check the preview to see which fields appear on each side. This catches cases where a column imports successfully but is not displayed by the selected card template.
| File column | Example content | Possible mapping |
|---|---|---|
| 1 | What does half-life describe? | Front |
| 2 | Time for half the original amount to decay. | Back |
| 3 | Radioactivity | Tags, if selected |
Why are special characters or line breaks missing?
Accented letters and symbols look wrong when the file is not in UTF-8; the Anki manual lists UTF-8 as a requirement for text imports. A field that contains a line break or the separator goes in double quotes, and a double quote inside such a field is doubled.Source Anki project (2026). Text Files. Anki Manual. docs.ankiweb.net · in the sources list
Case 3 and case 4 show how both errors look in the preview and how to fix them, with test files. Correct encoding does not fix a wrong separator, so check both settings separately.
How can I check the file before importing it?
Start with a small sample or inspect the import preview before importing a large collection. Check that the question appears on the front and the answer on the back. Look for blank fields, line breaks, delimiters, and special characters. If the first row contains column headings, it becomes a note (case 5).
Confirm the selected note type and destination deck too. The import screen lets you change the mapping. The “Existing notes” option controls what happens to notes you already have; case 6 shows its three settings with a test deck.Source Anki project (2026). Text Files. Anki Manual. docs.ankiweb.net · in the sources list
A CSV file usually contains text fields, but it does not automatically include every property of an Anki deck. Media, card templates, and review history are separate parts of a collection. When moving between learning apps, check what the specific import method actually transfers. Our article on Anki and its different editions explains the product context, while the guide to useful practice feedback covers how to review answers after importing questions.
Anki CSV import not working: six errors with test files
These six cases show typical problems with Anki text imports. Each case has a deliberately broken test file and a fixed version with the same content. Import them into a separate test profile, not into the collection you study from. An empty test deck alone does not protect it: by default, Anki looks for existing notes across the whole collection, and with “Update” the import overwrites your own notes with the same first field in other decks too.
If you do test in your collection, set “Match scope” to “Note type and deck”. We checked the expected counts with our own script that follows the rules in the Anki manual; they do not replace a look at the preview in your Anki version.Source Anki project (2026). Text Files. Anki Manual. docs.ankiweb.net · in the sources list
| Case | What you see | Broken test file | Fixed file |
|---|---|---|---|
| Case 1 | Whole line in the first field, second field empty | Broken: 3 notes, 1 field | Fixed: 3 notes, 2 fields |
| Case 2 | Answer stops mid-sentence | Broken: 3 notes, 2 fields | Fixed: 3 notes, 2 fields |
| Case 3 | ö instead of ö, ° instead of ° | Broken: 3 notes, 2 fields | Fixed: 3 notes, 2 fields |
| Case 4 | One extra note, one note without an answer | Broken: 4 notes, 2 fields | Fixed: 3 notes, 2 fields |
| Case 5 | Column labels as a note, plus tags in a content field if the note type has three or more fields | Broken: 4 notes, 3 fields | Fixed: 3 notes, 2 fields plus tags |
| Case 6 | A note appears twice after the second import | Broken: 4 notes in the test deck | Fixed: 3 notes in the test deck, 1 updated |
Case 1: Everything lands in one field
The preview shows the whole line, semicolon included, in the first field, and the second field stays empty. The separator does not match the file: the header asks for a comma, while the rows use semicolons. This can happen when a header is copied from one guide and a spreadsheet saves semicolons because of its regional settings.
The broken file gives 3 notes with only one field each; the fixed file gives 3 notes with two fields. In the preview, check that two columns are offered for mapping and that the first answer appears in the second field. The field separator cannot be changed in the import options here, because the header sets it. Change the header to #separator:Semicolon, or delete it and check which separator Anki detects.
#separator:Comma
#html:false
What are isotopes?;Atoms of the same element with different numbers of neutrons.
How is density calculated?;Mass divided by volume: ρ = m/V.
What does half-life describe?;The time until half of the nuclei have decayed.#separator:Semicolon
#html:false
What are isotopes?;Atoms of the same element with different numbers of neutrons.
How is density calculated?;Mass divided by volume: ρ = m/V.
What does half-life describe?;The time until half of the nuclei have decayed.Case 2: The answer is cut off
The second note ends after “Mass divided by volume”, and the formula is missing. The answer contains a semicolon without quotation marks, so Anki reads a third field at that point. The first data row has two fields, so this remainder is dropped.Source Anki project (2026). Text Files. Anki Manual. docs.ankiweb.net · in the sources list
Both files give 3 notes with two fields; only the content differs. In the preview, find the longest answer and compare its ending with the row in the file. The fix encloses the affected field in double quotes, as in the sample file at the start of this article.
#separator:Semicolon
#html:false
What are isotopes?;Atoms of the same element with different numbers of neutrons.
How is density calculated?;Mass divided by volume; formula ρ = m/V.
What does half-life describe?;The time until half of the nuclei have decayed.#separator:Semicolon
#html:false
What are isotopes?;Atoms of the same element with different numbers of neutrons.
How is density calculated?;"Mass divided by volume; formula ρ = m/V."
What does half-life describe?;The time until half of the nuclei have decayed.Case 3: Accented characters show up as ö or °
Instead of “Schrödinger”, the preview shows “Schrödinger”, and “0 °C” becomes “0 °C”. This file is valid UTF-8, but it already contains the damaged characters: it was written as UTF-8, read by a program as Windows-1252 and saved again. Anki displays the characters exactly as they appear in the file. A file that was never saved as UTF-8 does not meet Anki’s requirement for text imports either.
Both files give 3 notes with two fields. In the preview, specifically check words with accents and symbols such as the degree sign. Do not repair the characters one by one; export again from the original spreadsheet and choose UTF-8 encoding explicitly.
#separator:Semicolon
#html:false
Who formulated the wave equation of quantum mechanics?;Erwin Schrödinger (1926).
How many kelvin is 0 °C?;273.15 K.
What length is one ångström?;0.1 nm.#separator:Semicolon
#html:false
Who formulated the wave equation of quantum mechanics?;Erwin Schrödinger (1926).
How many kelvin is 0 °C?;273.15 K.
What length is one ångström?;0.1 nm.Case 4: A line break splits the note
Three planned flashcards turn into four notes, and one of them contains only “Beta decay” without an answer. The second answer has a line break without quotation marks. An unprotected line ending finishes the note, so “Beta decay” starts a new note whose second field stays empty.
The broken file gives 4 notes; the fixed file gives 3 notes with two fields each. In the preview, compare the number of notes with the number of flashcards you planned. Enclose multi-line fields in double quotes. Alternatively, write the line break as <br> and change the header to #html:true; while #html:false is there, “Allow HTML in fields” cannot be turned on in the import screen.Source Anki project (2026). Text Files. Anki Manual. docs.ankiweb.net · in the sources list
#separator:Semicolon
#html:false
What are isotopes?;Atoms of the same element with different numbers of neutrons.
Name two types of radioactive decay.;Alpha decay
Beta decay
What does half-life describe?;The time until half of the nuclei have decayed.#separator:Semicolon
#html:false
What are isotopes?;Atoms of the same element with different numbers of neutrons.
Name two types of radioactive decay.;"Alpha decay
Beta decay"
What does half-life describe?;The time until half of the nuclei have decayed.Case 5: Wrong field mapping or note type
The first note reads “Question” with the answer “Answer”, because the column labels are an ordinary data row here. Without further headers, Anki fills the fields of the selected note type with the columns in order and uses the next free column as tags. With the two-field “Basic” note type, the subject tags therefore end up in the right place; if the note type has three or more fields, they land in the third field instead of the tags.
The broken file gives 4 notes with three columns; the fixed file gives 3 notes with two fields and a tags column. The fix deletes the label row and uses #tags column:3 to mark the third column as tags for any note type.
Column names in #columns only help if they match the note type’s field names exactly, so “Front” and “Back” for “Basic”; with “Question” and “Answer”, the answer would have no field. In the preview, check the note type, the field mapping and the tags before importing.Source Anki project (2026). Text Files. Anki Manual. docs.ankiweb.net · in the sources list
#separator:Semicolon
#html:false
Question;Answer;Tags
What are isotopes?;Atoms of the same element with different numbers of neutrons.;Chemistry
How is density calculated?;Mass divided by volume.;Physics
What does half-life describe?;The time until half of the nuclei have decayed.;Physics#separator:Semicolon
#html:false
#tags column:3
What are isotopes?;Atoms of the same element with different numbers of neutrons.;Chemistry
How is density calculated?;Mass divided by volume.;Physics
What does half-life describe?;The time until half of the nuclei have decayed.;PhysicsCase 6: An unexpected duplicate
After a second import, the test deck contains two notes about isotopes. In text imports, Anki identifies existing notes of the same note type by their first field. In the broken file, the first question was reworded, so Anki finds no match and adds a new note. Try this in your test profile: first import the three-note sample from the start of this article, then one of the two files.Source Anki project (2026). Text Files. Anki Manual. docs.ankiweb.net · in the sources list
The fixed file keeps the first field and changes only the answer. With “Existing notes” set to “Update”, Anki then overwrites the existing note where it is; according to the manual, the scheduling information of its flashcards is preserved. “Update” is preselected only for your first import; after that, Anki suggests the option you chose last. Check the setting every time you import a file again, and count the notes in the test deck afterwards.
| Existing notes | After the broken file | After the fixed file |
|---|---|---|
| Update | 4 notes in the test deck | 3 notes in the test deck, 1 updated |
| Preserve | 4 notes in the test deck | 3 notes in the test deck |
| Duplicate | 6 notes in the test deck | 6 notes in the test deck |
#separator:Semicolon
#html:false
"What is an isotope?";"Atoms of the same element with the same number of protons and different numbers of neutrons."
"How is density calculated?";"Mass divided by volume: ρ = m/V."
"How can a field contain a semicolon?";"Enclose the field in double quotes; as in this row."#separator:Semicolon
#html:false
"What are isotopes?";"Atoms of the same element with the same number of protons and different numbers of neutrons."
"How is density calculated?";"Mass divided by volume: ρ = m/V."
"How can a field contain a semicolon?";"Enclose the field in double quotes; as in this row."What should I do after the import?
A valid text file is only the first step. Write one clear question per note, keep the answer focused, and check terminology and source references. If an answer contains several independent claims, splitting it often makes it clearer what you are expected to recall. That also makes it easier to rate your confidence honestly during a review.
Before exporting a new collection, build a small group of examples and walk through the mapping once. The article on how many flashcards to study each day explains why an imported total is not the same as a suitable daily workload. Our guide to learning from multiple-choice feedback covers another practice format. Quanta lists the supported formats and process on its flashcard import page; the flashcard app overview describes the subsequent study view.
