اولین بار در جهان کلوچه در قرن هفتم میلادی در ایران پخته شد.
واژه «کلوچه» در زبان فارسی با واژه های مشابه خود در دیگر زبانهای هندو اروپایی احیاناً از یک ریشه است؛ برای نمونه: در روسی (کولیچ Кулич) و کلمه یونانی (κόλλιξ کولیکس). البته فارسی این واژه مشترک را از روسی نگرفته است، زیرا در شعر (کاک و کلوچه نسبتش گر به دو ماه کرده ام---سهل مبین که فکر آن من به دو ماه کرده ام) که سروده شاعر طنزگوی قرن نهم هجری قمری ، سحاق اطعمه است، از این واژه استفاده شده است ولی شاید واژه از یونانی به فارسی اندر شده باشد و به ریشه مشترک هندواروپایی فارسی با روسی و یونانی مربوط نباشد، البته در هیچ یک از فرهنگهای دهخدا، معین و عمید، ریشه خارجی و نافارسی برای واژه «کلوچه» قید نشده است.
This article is about the food. For the computer term, see HTTP cookie. For other uses, see Cookie (disambiguation).
In the United States and Canada a cookie is a small, flat, baked treat, usually containing flour, eggs, sugar, and either butter or cooking oil, and often including ingredients such as raisins, oats, or chocolate chips. In many other English-speaking countries cookies are called biscuits.
In most English-speaking countries outside North America, including the United Kingdom, the most common word for this type of treat is biscuit and the term cookie is often used to describe only certain types of biscuits. However, in many regions both terms are used.
Its American name derives from the Dutch word koekje or more precisely its informal, dialect variant koekie  which means little cake, and arrived in American English through the Dutch in North America.
According to the Scottish National Dictionary, its Scottish name derives from the diminutive form (+ suffix -ie) of the word cook, giving the Middle Scots cookie, cooky or cu(c)kie. It also gives an alternative etymology, from the Dutch word koekje, the diminutive of koek, a cake. There was much trade and cultural contact across the North Sea between the Low Countries and Scotland during the Middle Ages, which can also be seen in the history of curling and, perhaps, golf.
Cookies are most commonly baked until crisp or just long enough that they remain soft, but some kinds of cookies are not baked at all. Cookies are made in a wide variety of styles, using an array of ingredients including sugars, spices, chocolate, butter, peanut butter, nuts, or dried fruits. The softness of the cookie may depend on how long it is baked.
A general theory of cookies may be formulated this way. Despite its descent from cakes and other sweetened breads, the cookie in almost all its forms has abandoned water as a medium for cohesion. Water in cakes serves to make the base (in the case of cakes called "batter") as thin as possible, which allows the bubbles – responsible for a cake's fluffiness – to better form. In the cookie, the agent of cohesion has become some form of oil. Oils, whether they be in the form of butter, egg yolks, vegetable oils, or lard, are much more viscous than water and evaporate freely at a much higher temperature than water. Thus a cake made with butter or eggs instead of water is far denser after removal from the oven.
Oils in baked cakes do not behave as soda tends to in the finished result. Rather than evaporating and thickening the mixture, they remain, saturating the bubbles of escaped gases from what little water there might have been in the eggs, if added, and the carbon dioxide released by heating the baking powder. This saturation produces the most texturally attractive feature of the cookie, and indeed all fried foods: crispness saturated with a moisture (namely oil) that does not sink into it.
Cookie-like hard wafers have existed for as long as baking is documented, in part because they deal with travel very well, but they were usually not sweet enough to be considered cookies by modern standards.
Cookies appear to have their origins in 7th century AD Persia, shortly after the use of sugar became relatively common in the region. They spread to Europe through the Muslim conquest of Spain. By the 14th century, they were common in all levels of society throughout Europe, from royal cuisine to street vendors.
With global travel becoming widespread at that time, cookies made a natural travel companion, a modernized equivalent of the travel cakes used throughout history. One of the most popular early cookies, which traveled especially well and became known on every continent by similar names, was the jumble, a relatively hard cookie made largely from nuts, sweetener, and water.
Cookies came to America through the Dutch in New Amsterdam in the late 1620s. The Dutch word "koekje" was Anglicized to "cookie" or cooky. The earliest reference to cookies in America is in 1703, when "The Dutch in New York provided...'in 1703...at a funeral 800 cookies...'"
The most common modern cookie, given its style by the creaming of butter and sugar, was not common until the 18th century.
Cookies are broadly classified according to how they are formed, including at least these categories:
See also: List of cookies
Related pastries and confections
Product lines and brands