Dried fennel seeds are used as a spice for flavoring food .
Fennel seeds are sometimes confused with those of anise , which are very similar in taste and appearance , though smaller . Fennel is also used as a flavoring in some natural toothpaste .