This is almost 6000 rows of taxonomy terms ranging over 8 columns that i'd like to import from csv. I would like to use it for facet search.

The CSV is located here (google_product_category).

The format is like:

# Google_Product_Taxonomy_Version: 2015-02-19
1 - Animals & Pet Supplies
3237 - Animals & Pet Supplies > Live Animals
2 - Animals & Pet Supplies > Pet Supplies
3 - Animals & Pet Supplies > Pet Supplies > Bird Supplies
7385 - Animals & Pet Supplies > Pet Supplies > Bird Supplies > Bird Cage Accessories

As popular Drupal 7 modules like Taxonomy CSV import/export and Taxonomy Manager are not ported to Drupal 8, I recommend a very simple but functional module called term_csv_tree_import.

After installing, go to /csv-tree-import and paste your taxonomies into the form. It assigns parent values from right to left, empty intermediate elements are allowed. You have to convert your CSV into the following format:

  • Noob here, how do you access /csv-tree-import I have installed and activated your module but i cant find where to use the option from admin
    – Qu Don
    Feb 23 '17 at 5:58
  • It's your Drupal install directory + the path, for example: example.com/csv-tree-import
    – geraldo
    Feb 23 '17 at 9:47
  • Ah was expecting /term_csv_tree_import instead of ..../csv-tree-import. Thanks
    – Qu Don
    Feb 25 '17 at 8:38

At the time of this writing, the options on drupal.org are:

I'd evaluate based on the method you're most comfortable with, the issues in the queues and the number of sites using each module.


You can also refer to the following module:


However, CSV file needs to be formatted a bit differently. You would find a sample screenshot there.

  • What does this module do? Jan 19 '18 at 8:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.