Esters are a group of chemical compounds derived from an acid (usually an organic acid) and an alcohol. They typically have a pleasant fragrance and are often used in flavorings, fragrances, and pharmaceuticals. The general formula for an ester is RCOOR', where R and R' are organic substituents.