Although they are created differently, imitation vanilla, vanilla flavoring, and pure vanilla extract all function similarly. And in most circumstances, you can substitute one for the other without altering the recipe's flavor.