A cookie is a small piece of data that a website asks your browser to store on your computer or mobile device. It's essentially a text file containing information about your browsing habits and preferences on that particular website.