# What is a web cookie?

Japanese: クッキー（ネット） (クッキー)

**In one line:** A cookie is a small piece of data saved in your browser when you visit a website. It is used to keep you logged in and to show ads based on your browsing.

A cookie is a small piece of data. It is saved in your browser, the app you use to look at websites, when you visit a site. Cookies keep you logged in. They remember what is in your shopping cart. Thanks to them, you don’t have to type your password every time. But cookies have also been used to show ads, based on which sites you visited. That is why sites ask, “Do you accept cookies?” You can’t eat these. Still, they are handy little snacks. For advertisers, mostly.

**Common mix-up:** Cookies are not viruses. But they are used for things like tracking for ads, so you can manage them in your settings.

**FAQ**

- Is a cookie a kind of virus? — No. But cookies can be used for ad tracking, so you can manage them in your settings.

Topic: Tech
Published: 2026-11-15
Source URL: https://eli5.net/en/w/cookie
日本語: https://eli5.net/w/cookie
