Anki Flashcards Import File Maker – Free

Paste one question and answer per line with a tab between them, and get a validated tab-separated file that the Anki flashcards importer reads as front and back fields.

How to use the Anki flashcards tool

  1. Put each card on its own line in the Question and answer, separated by a tab box: the question, one tab, then the answer.
  2. Select Generate flashcards, or select Example to load two sample cards.
  3. If you see an error, fix any line that has no tab, more than one tab or an empty side, then generate again.
  4. Use the Download link to save flashcards.tsv, or Copy to take the text from the Result box.
  5. In Anki, choose File, then Import, select the file and map the two columns to the front and back fields.

What the Anki flashcards tool does to your text

Anki imports notes from plain text files in which each line is a note and a separator divides the fields. This tool prepares such a file with the tab as separator. It splits your input into lines, throws away lines that are empty or only whitespace, and checks that every remaining line has exactly two fields with something in each.

If every line passes, the cards are written out unchanged, joined by single line feeds, as flashcards.tsv with the media type text/tab-separated-values. If any line fails, nothing is produced and you see: Use one nonempty question and one nonempty answer per line, separated by a tab. The message does not name the line.

Example input and the generated file

These two lines are what the Example button loads. The gap between question and answer is one tab character, not spaces. The output is the same two lines, and after import Anki shows Capital of Japan? on the front of the first card and Tokyo on the back.

Capital of Japan?	Tokyo
2 + 2?	4

Getting tab characters into the box

Pressing the Tab key in a web form moves focus to the next control instead of typing a tab, so the easy route is to prepare cards somewhere else. Two adjacent columns copied from a spreadsheet such as Excel, Google Sheets or LibreOffice Calc arrive on the clipboard as tab-separated lines, which is the format this tool expects.

A code editor works too, as long as it inserts real tabs and does not convert them to spaces.

What is left untouched, and why a line is rejected

Text inside the fields is passed through as typed. Leading and trailing spaces are kept, quotes are not escaped and HTML is not altered. If a field contains HTML markup, turn on Allow HTML in fields in Anki's import dialog so it is rendered instead of shown as text.

Validation is all-or-nothing: one bad line blocks the whole file. These are the cases that trip it:

  • No tab on the line, for example when the two sides are separated by spaces, a comma or a semicolon.
  • More than one tab, which happens when three spreadsheet columns were copied. Extra columns for tags are not supported.
  • A question or answer that is empty or only spaces, such as a row with a blank cell.
  • An answer that continues on a second line. Each line is one card, so join multi-line answers first.

Frequently asked questions

How do I import the file into Anki?

In the desktop app choose File, then Import, and pick flashcards.tsv. Confirm that the field separator is Tab, choose a note type with two fields such as Basic and a target deck, check that column one maps to Front and column two to Back, then import.

Can an answer contain commas, semicolons or quotes?

Commas and semicolons are safe because the tab is the only separator in the file. The tool does not add or escape quotes. Anki's importer may treat a field that begins with a double quote as quoted text, so avoid starting a question or answer with one.

Does the tool create an .apkg deck?

No. It produces a plain text .tsv file with one note per line. Anki builds the cards when you import that file, using the note type and deck you choose. No scheduling data, media or styling is included.

Are my cards uploaded anywhere?

No. The lines are checked and joined by a script in the page, and the download is created from memory in your browser.

Related tools