输入 Cookie
document.cookie Cookie Header Set-Cookie Netscape txt curl -b
解析模式 自动识别 Cookie/document.cookie Set-Cookie Netscape txt URL 解码 粘贴 清空
识别为 {{ detectedFormat }} {{ cookies.length }} 条 cookie 重名 {{ duplicateCount }} 条(保留首条) ⚠ {{ errorMsg }}
解析结果 {{ cookies.length }} 条
名称 属性
{{ c.name }} {{ c.value }} {{ c.domain }} {{ c.path }} exp:{{ formatExpires(c.expires) }} max:{{ c.maxAge }}s Secure HttpOnly SameSite={{ c.sameSite }}
等待输入 Cookie...
输出
对象 数组 完整属性 Puppeteer Cookie Header Netscape
缩进 2 4 压缩 复制结果 下载
{{ outputDesc }} {{ output.length }} 字符 / {{ output.split('\n').length }} 行

Cookie 转 JSON

Cookie 在线转 JSON:纯前端解析。自动识别 5 种来源——document.cookie 字符串、HTTP Cookie / Set-Cookie Header、Netscape cookies.txt(含 #HttpOnly_ 前缀)、curl -b/-H 命令片段、DevTools 复制的整段 Header;6 种输出——简单对象 / 数组 / 完整属性 JSON / Puppeteer & Playwright cookie / Cookie Header / Netscape txt。完整保留 domain/path/expires/maxAge/secure/httpOnly/sameSite/priority/partitioned 9 个属性,URL 解码可开关,重名自动去重并提示,过期时间在 Puppeteer/Netscape 输出时自动 maxAge→unix 时间戳转换。属性以彩色徽章呈现,Secure/HttpOnly/SameSite 不同状态分色

本工具由 在线小工具大全 提供,更多 同类工具 可在站内查看。