The invention provides a coconut essence for food and a preparation method thereof. The coconut essence mainly comprises the following components: heptanolide, octalactone, octanolide, cocoanut aldehyde, decanolide, 6-methyl coumarin, milk lactone, ethyl butyrate, ethyl hexanoate, ethyl oenanthate, heptyl acetate, ethyl caprylate, octyl acetate, ethyl caprate, methyl salicylate, delta-Nonalactone, edible alcohol, and propylene glycol. The coconut essence is obtained by reasonably matching various spices so that the whole coconut essence is fresh and sweet, strong in natural feeling, full in body flavor, good in flesh feeling, smooth in mouth feel and lasting in basic flavor. The coconut essence can be applied to various food products with coconut flavor to meet the life requirement of people.