A cookie is a small text file that stores Internet settings. Some cookies are extremely useful because they can improve your user experience when you return to a website you have already visited.