ToolSphere
Back to all articles
glossary

What is Cookie? A Practical Definition

2026-07-283 min read

Try it: free JSON Toolkit

Format, minify and check JSON for errors

Open →

What is Cookie?

A cookie is a small piece of data a server asks a browser to store and automatically resend with every subsequent request to that domain. Cookies are how stateless HTTP gets state — sessions, login persistence, and preferences — layered on top, and their Secure, HttpOnly, and SameSite attributes control how safely they are transmitted and accessed.

Example

Set-Cookie: session=abc123; HttpOnly; Secure; SameSite=Strict

Related tool

Try it on ToolSphere — runs entirely in your browser, nothing is uploaded to a server.

Use the JWT Decoder to inspect the contents of a sample token. For a related walkthrough, read JWT Tokens: Signatures, Payload, Safety.

Looking for other tools?

Explore ToolSphere Homepage →