Code on a screen, representing web cookies.

Small files that let websites remember you between visits.

A cookie is a small piece of data that a website asks your web browser to store on your device. The next time your browser talks to that website, it sends the cookie back, letting the site recognize the connection and recall information from before. Cookies were created to solve a basic limitation of the web: on its own, each request to a website is independent, with no memory of what came before. Cookies give websites a way to remember.

Why cookies exist

The web's underlying protocol is stateless, meaning each request is treated on its own with no built-in memory of previous ones. That makes it hard for a site to know that a series of requests all come from the same person. Cookies bridge this gap by storing a bit of data in the browser that gets sent back with each request. This lets a website maintain continuity, recognizing a returning visitor and keeping track of an ongoing session.

What cookies are used for

Cookies serve several everyday purposes. They keep you logged in as you move between pages, so you do not have to re-enter your password constantly. They remember preferences like language or display settings. They can hold the contents of a shopping cart. Cookies are also used to gather information about how people use a site. In short, much of the convenience of modern websites - staying signed in, remembered settings - relies on cookies working quietly in the background.

Cookies and privacy

Because cookies can track information about users, they raise privacy questions. Some cookies, often from third parties, are used to follow people across different websites to build profiles for advertising. This tracking has led to regulations requiring websites to tell visitors about cookies and, in many cases, ask for consent - which is why so many sites show cookie notices. Browsers also offer controls to block or delete cookies, giving users some say over what is stored.

Managing cookies

You have control over cookies through your web browser, which lets you view, block, or delete them. Clearing cookies can log you out of sites and reset preferences, since the stored information is removed. Blocking certain cookies, especially third-party ones, can reduce tracking, though it may affect how some sites work. Understanding cookies helps you make informed choices about this trade-off between convenience and privacy as you browse.

Why it matters

Cookies are a foundational part of how the modern web works, enabling the convenience of staying logged in and keeping preferences while also raising important privacy considerations. Understanding what a cookie is - a small piece of data a website stores in your browser to remember information - clarifies both how websites recognize you and why you see so many cookie consent prompts. For anyone who uses the web, cookies are worth understanding.

See also: What is an API? Explained simply, What is hashing? How passwords are stored safely.

Sources

Published date reflects the original event date (2023-08-01). This article is original Skillo editorial written from the sources above; facts were verified in September 2026.

Skillo Staff

Skillo Staff

All stories by: Skillo Staff

Leave a Reply