How to Create Anki Flashcards from Webpage Tables

2-minute read • Updated on

Anki is a free, open-source flash card program. There is a lot of useful information scattered around Wikipedia and other websites that would make great flashcards, but it isn’t always easy to get that data into Anki.

I learned a way to extract table data from webpages, and realized that it could be used to make flashcards. I’ve recorded a screencast below and also written out the instructions underneath the video.

Tools You Will Need

To follow the video, you will need these tools:

  • Firefox
  • a Firefox extension called TableTools2 [Edit: this extension no longer exists, but there might be similar ones available.]
  • Anki or another flash card program that can import CSV files

The Video Tutorial

I recommend putting the video on the highest quality setting and viewing it full-screen. That way you will be able to see the details on my computer screen. Sorry if I may not be speaking loud enough – this is my first screencast, and I will try to improve the next ones.

Text Instructions

NOTE: The TableTools2 extension doesn’t exist any more, but you might be able to adapt these instructions for a similar extension like Table Capture.

Open up Firefox and install TableTools2 if you haven’t installed it yet. Also be sure to install Anki. You may have to restart Firefox after installing the extension. This tutorial works with Anki 1 and Anki 2.

Visit a webpage that has a table with data that you want to turn into flashcards. In this tutorial, I’ve searched through Wikipedia timelines and chosen a timeline of medieval history.

Removing Unwanted Columns

To remove a column from a table on a webpage, right-click the header of the column that you want to hide, and choose TableTools2 –> Other –> Hide Clicked Column.

tabletools2-firefox

In the video, I removed to columns so that there were only two columns remaining: the fronts of the flashcards and the backs of the flashcards.

Copying the Table Data

After the table looks the way you want, right-click on the table and choose TableTools2 -> Copy -> Table As Tab-Delimited Text.

You can then paste the tab delimited text into any spreadsheet program and save it in CSV format. The resulting file should have a .csv extension.

csv-to-anki

Importing the Data into Anki

Open up Anki and click Import File. Choose the CSV file that you just exported.

You can leave the default settings, but be sure that you are importing the data into the correct deck. If you haven’t already created the deck, you can do that during this step.

If you leave everything with default settings, and your spreadsheet only has two columns, the first column will be the front of your cards, and the second column will be the back of your cards.

Click the Import button, and you’re done!

Possible Uses

Here are some ideas on where to use this method:

If you have any questions or additional tips, please leave a comment below. I’d be interested to hear about any new, creative uses for this method.

Don’t forget to subscribe to the new Art of Memory YouTube channel!

Feedback and Comments

What did you think about this article? Do you have any questions, or is there anything that could be improved? We would love to hear from you! You can leave a comment after clicking on a face below.

Comments

kurt Krueckeberg
kurt Krueckeberg

First, thanks for the information. It's really a big help. I have an html table in which the first column is a foreign language work, the second its possible meanings -- each separated by a comma. Will this pre-existing format screw up Anki? Do I need to convert the commas in column two into a different delimeter? thanks!


Josh Cohen
Josh Cohen

Give it a try. I'm not sure what kind of CSV file your spreadsheet program will save it as. If it doesn't work as a CSV, try saving it as a CSV that uses TAB as a separator. If that doesn't work, send me the file in an email and I'll take a look.


Pablo
Pablo

Hi! I thought you should check out this add-on for Firefox: https://addons.mozilla.org/en-US/firefox/addon/ankifox/ Bye!


Annie
Annie

Hi Hoping someone is still active here... I had TableTools2 but it is no longer supported by the new Firefox. Is there a similar tool or another workaround?

Thanks, Annie


Josh Cohen
Josh Cohen

Ryan
Ryan

It's not the same but I've been using table to excel https://addons.mozilla.org/en-US/firefox/addon/table-to-excel/