HTTP Cookie Builder
Build a Set-Cookie header and matching document.cookie line with Secure, HttpOnly, SameSite, Path, Domain, Expires, Max-Age and Partitioned.
HTTP Cookie Builder
Flags
Set-Cookie: session=abc123; Path=/; Secure; HttpOnly; SameSite=Laxdocument.cookie = "session=abc123; path=/; secure; samesite=Lax";Updated . Provided as is. Check the output before you rely on it in production.
Questions and answers
What is HTTP Cookie Builder?
How do I use HTTP Cookie Builder?
Is HTTP Cookie Builder free?
What does SameSite=None require?
What is the Partitioned attribute?
Use it as an API
HTTP Cookie Builder is also callable as a free HTTP JSON API at
https://aidevhub.io/api/http-cookie-builder/ — GET with query
parameters or POST with a JSON body, no authentication, CORS enabled, fair use
(abusive traffic is throttled at the edge; there is no per-request quota header). Responses return
{ ok, tool, result, meta }.
curl -s "https://aidevhub.io/api/http-cookie-builder/?name=session&value=abc123&secure=true&same_site=Lax"
Machine-readable contract: /api/tool/http-cookie-builder.json All API endpoints: /agents/ LLM site index: /llms.txt
For AI agents: how to call this tool
Machine-readable contract, endpoints and examples. Humans can ignore this section.
Best Path For Builders
Dedicated API endpoint
Deterministic outputs, machine-safe contracts, and production-ready examples.
Dedicated API
https://aidevhub.io/api/http-cookie-builder/ OpenAPI: https://aidevhub.io/api/openapi.yaml