I have a list of items that I need turned into a taxonomy. My list looks something like this:

    Apple 1a
    Apple 1b
    Apple 2a
    Apple 2b
    Apple 192b
    Banana 1a
    Banana 1b
    Banana 2a
    Banana 2b
    Banana 96a
More Items
    More Items 1a
    More Items 300b

Anyway you get the idea. Creating new terms for each of these isn't going to work in this case , it'll take days. Is there any way to bulk create from a text file like this?


If you can get your terms into CSV format you can use the excellent Taxonomy CSV import/export module:

This module allows you to import or export taxonomy from or to a CSV (comma-separated values) file or with a copy-and-paste text.

It has support for importing hierarchical trees like yours, and even supports drush.

It also has good documentation to get you started.


You could also try the Taxonomy import/export via XML module which does the same thing but for XML (if you find it easier to get your data into that format). It's only in dev release at the moment but its worth a try.


Alternatively you can use the Feeds module as it allow syou to both upload a file and create taxonomy terms based on the input. It is a little more configurable and as a result powerful but might be a little more difficult to setup.

If CSV gets the job done easily for you go with it otherwise i KNOW feeds can intelligently do what you need. Espercially if you combine it with feeds_tamper and a custom parser form contrib.

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.