text: Vanillin is an organic compound with the molecular formula .  It is a phenolic aldehyde.  Its functional groups include aldehyde, hydroxyl, and ether.  It is the primary component of the extract of the vanilla bean.  Synthetic vanillin is now used more often than natural vanilla extract as a flavoring in foods, beverages, and pharmaceuticals.
  Vanillin and ethylvanillin are used by the food industry;  ethylvanillin is more expensive, but has a stronger note. It differs from vanillin by having an ethoxy group (−O−CHCH) instead of a methoxy group (−O−CH).
  Natural vanilla extract is a mixture of several hundred different compounds in addition to vanillin.  Artificial vanilla flavoring is often a solution of pure vanillin, usually of synthetic origin. Because of the scarcity and expense of natural vanilla extract,  synthetic preparation of its predominant component has long been of interest.  The first commercial synthesis of vanillin began with the more readily available natural compound eugenol (4-allyl-2-methoxyphenol).  Today, artificial vanillin is made either from guaiacol or lignin.
  Lignin-based artificial vanilla flavoring is alleged to have a richer flavor profile than that from guiacol-based artificial vanilla; the difference is due to the presence of acetovanillone, a minor component in the lignin-derived product that is not found in vanillin synthesized from guaiacol.