A cookie is a small text file, often containing a unique identifier, that is stored by your web browser when you visit a website. Websites use cookies to provide certain features and to personalize your web experience by remembering information such as your language preference or the items in your shopping cart.