🔍

首页Home › 网络工具Network & Web

🍪 Cookie 解析格式化Cookie Parser & Formatter

把浏览器复制的 Cookie 请求头或 Set-Cookie 响应头解析成清晰的表格、JSON,或者一键生成 document.cookie 的 JavaScript 代码,支持自动 URL 解码。Parse a Cookie request header or Set-Cookie response headers into a readable table or JSON, or generate document.cookie JavaScript code, with optional URL decoding.

使用说明与常见问题How-to & FAQ

「Cookie 解析格式化」是什么?What is the Cookie Parser & Formatter tool?

把浏览器复制的 Cookie 请求头或 Set-Cookie 响应头解析成清晰的表格、JSON,或者一键生成 document.cookie 的 JavaScript 代码,支持自动 URL 解码。Parse a Cookie request header or Set-Cookie response headers into a readable table or JSON, or generate document.cookie JavaScript code, with optional URL decoding.

如何使用「Cookie 解析格式化」?How do I use the Cookie Parser & Formatter?

从浏览器开发者工具(Network → Headers)复制 Cookie 或 Set-Cookie 的值粘贴到输入框,选择输出格式:表格、JSON、JavaScript 代码或重新拼接的 Cookie 头。多条 Set-Cookie 每行一条即可。Copy the Cookie or Set-Cookie value from your browser DevTools (Network → Headers), paste it in, and pick an output: table, JSON, JavaScript code, or a rebuilt Cookie header. Put one Set-Cookie per line.

Cookie 和 Set-Cookie 有什么区别?What is the difference between Cookie and Set-Cookie?

Set-Cookie 是服务器响应头,每条设置一个 Cookie 并可带 Path、Expires、HttpOnly 等属性;Cookie 是浏览器发回服务器的请求头,只包含「名=值」,多个用分号分隔。Set-Cookie is a response header that sets one cookie with attributes such as Path, Expires and HttpOnly; Cookie is the request header the browser sends back, containing only name=value pairs separated by semicolons.

为什么生成的 JS 代码设置不了 HttpOnly?Why can the JS code not set HttpOnly?

HttpOnly 的作用就是禁止脚本读写该 Cookie,所以 document.cookie 无法创建 HttpOnly Cookie,只能由服务器通过 Set-Cookie 下发。HttpOnly exists to block scripts from reading or writing the cookie, so document.cookie cannot create one; only the server can via Set-Cookie.

「Cookie 解析格式化」免费吗?数据会上传吗?Is the Cookie Parser & Formatter free? Is my data uploaded?

「Cookie 解析格式化」完全免费,无需注册或安装,手机和电脑都能用;所有处理都在你的浏览器本地完成,输入的内容和文件不会上传到服务器。The Cookie Parser & Formatter is completely free with no sign-up or install and works on phones and desktops; everything runs locally in your browser and nothing you enter is uploaded.

相关工具Related tools

🧩 URL 解析器URL Parser📨 HTTP 请求头解析HTTP Header Parser🕵️ User-Agent 解析User Agent Parser🌐 URL 编码解码URL Encode / Decode🚦 HTTP 状态码大全HTTP Status Codes List🤖 robots.txt 生成器Robots.txt Generator🏷️ SEO Meta 标签生成器SEO Meta Tag Generator📎 MIME 类型查询MIME Types Lookup

← 全部工具All tools