关于本工具
将HTTP请求/响应头转换为JSON格式,反之亦然。 只需粘贴你的头信息或JSON,点击转换按钮,即可立即获得结果。
保留大小写敏感性
处理多行值
验证输入格式
输入
输出
示例
HTTP头示例
Host: api.example.com User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) Accept: application/json, text/plain, */* Accept-Encoding: gzip, deflate, br Accept-Language: zh-CN,zh;q=0.9 Connection: keep-alive Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9 Content-Type: application/json X-Custom-Header: 中文测试内容 Content-Length: 42
JSON示例
{
"Host": "api.example.com",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)",
"Accept": "application/json, text/plain, */*",
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "zh-CN,zh;q=0.9",
"Connection": "keep-alive",
"Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9",
"Content-Type": "application/json",
"X-Custom-Header": "中文测试内容",
"Content-Length": "42"
}