A pastry bag is a cone-shaped, flexible bag used to pipe semi-solid foods such as icing, whipped cream, or dough for decorating cakes, pastries, and other baked goods.