Skip to content
Tesserae

Keyboard shortcuts

Focus search
/
This help dialog
?
Run the current tool
Ctrl/⌘ +Enter
Copy the output (when an output is focused)
Ctrl/⌘ +C

Shortcuts are ignored while you are typing in an input, a textarea or a select.

Web & CSS

Set-Cookie Builder & Analyzer

Generate a Set-Cookie response header from cookie attributes, or analyze one or more pasted Set-Cookie lines for Secure, HttpOnly, SameSite, Domain, Path, and expiry settings. This tool never stores or transmits cookies.

On-device No network Offline-ready

🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.

Try:

Options

Your result will appear here

Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.

How it works

One header at a time, in either direction

Analyze takes one Set-Cookie header per line, splits each on semicolons and returns a row per cookie: name, a "Looks secure" or "Review" verdict, the value and the issues found, so a batch pasted from a proxy log reads at a glance. Build takes a name, value and attribute fields and prints a single joined line such as "session=opaque-token; Path=/; SameSite=Lax; Secure; HttpOnly".

When to build instead of typing the header by hand

Build mode is the dependable way to emit a cookie for an internal API, a webhook callback or a redirect that needs an exact SameSite value, and it validates the name, value, path and domain while refusing a value containing a semicolon or line break.

The flags the analyzer cares about

A cookie is only reported clean when it carries Secure, HttpOnly, a SameSite of Strict, Lax or None, and a Path. SameSite=None additionally requires Secure, a leading-dot Domain is flagged as obsolete syntax, and a Max-Age that is not a non-negative whole number is called out.

Where the tool stops and your application begins

No local check can see your HTTPS setup, your login flow, or whether the cookie value is a guessable token, so the verdicts are a checklist rather than a promise. Build mode also refuses SameSite=None without Secure, which matches the dominant browser rule but means you cannot generate that line here for a client you control.

Nothing is sent, stored or read from your browser

Both directions are pure text work in this tab: a cookie copied from a production response, or one being designed for staging, never leaves the page, and the tool never touches your own cookie jar.

Questions

Does this handle browser cookies?

No. It only formats and analyzes header text locally. It does not read your browser cookie jar, set cookies, or make network requests.

Why are Secure and HttpOnly recommended?

Secure limits transmission to HTTPS, while HttpOnly prevents JavaScript from reading the cookie. Whether they are appropriate depends on the application and deployment.

Is SameSite=None always valid?

Modern browsers generally require SameSite=None cookies to also include Secure. The analyzer flags that combination when Secure is absent.

See category