全部工具

cURL 转代码

开发工具

粘贴 cURL 命令,转成 fetch / axios / Node http / Python requests 等价代码,纯浏览器本地解析。

const res = await fetch("https://api.example.com/v1/users", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "Bearer TOKEN",
  },
  body: "{\"name\":\"Lin\",\"role\":\"admin\"}",
});
const data = await res.json();
console.log(data);

纯浏览器本地解析,命令不上传。文件上传(-F field=@file)会生成占位代码;复杂 shell 变量替换可能无法完全还原。

所有计算均在浏览器本地进行,输入数据不会上传服务器

试试其它工具