Free · No sign-up · Runs in your browser

Cookie Parser

Parse Cookie request headers or separate Set-Cookie response lines into structured JSON without losing duplicate names.

STEP 1

Start with your input

Edit the example or replace it with your own text.

STEP 2

Choose your options

These settings are optional. Keep the defaults to get started.

How to use Cookie Parser

  1. Paste the example or your own input.
  2. Choose the options that match your task.
  3. Run the tool, review the result, then copy or download it.

When to use Cookie Parser

Browser requests send a Cookie header containing name and value pairs, while responses use Set-Cookie to attach attributes to individual cookies. Choose the matching mode before parsing a copied header. The output preserves cookie order, duplicate names and values containing equals signs, which helps diagnose sessions with multiple paths or applications sharing the same cookie name.

How to interpret the result

Paste each response cookie on its own line. Commas inside an Expires date are kept intact; combined Set-Cookie headers are not automatically split. Attributes are displayed as written with normalized names, without checking public suffix rules or deciding whether a browser will accept the cookie. Percent escapes are preserved rather than decoded, since cookie values do not have a universal URL-encoding contract.

Example input

Set-Cookie: session=abc=123; Path=/; Secure; HttpOnly; SameSite=Lax

What should I check before using the output?

Paste each response cookie on its own line.

Is input uploaded?

Processing takes place in your browser. This tool does not send your input or selected files to a conversion API.

Related tools and guides

Official reference

Browse all developer tools