A cookie is a small file of letters and numbers that is downloaded on to your computer when you visit a website. Cookies are used by many websites and can do a number of things, such as remembering your preferences, recording what you have put in your shopping basket, and counting the number of people looking at a website.