A cookie is a very small text file that a website saves on to your hard drive. It can help make web surfing easier (like when you ask a website to save your login details, or if your favorite online store saves your information). Websites can also use cookies to track how you navigate a website, so you’re automatically directed to your favorite sections on your next visit.