跳转到主要内容
Develop Tools

cURL 代码转换工具

在浏览器中将 cURL 命令转换为 JavaScript、TypeScript、Python、Java、C#、PHP、Go、Ruby HTTP 请求代码的免费工具。

cURL input and code conversion

Bash, PowerShell, command prompt format pasting and text files are supported.

Input

直接输入
0 个字符

Convert

0 个字符

Enter the cURL command.

关于此工具

You can convert cURL obtained from API documentation or developer tools into HTTP client implementations for each language.

支持的功能

  • JavaScript、TypeScript、Python、Java、C#、PHP、Go、Ruby
  • Method, header, JSON/form body, Basic authentication, Cookie
  • Backslash in Bash, backtick in PowerShell, caret newline in cmd
  • Additional information: Cookie

使用方法

  1. Paste the cURL command or open the file.
  2. Select
  3. Press "Convert to code" and check the warning and conversion result.
  4. Copy

Safety and limitations

Privacy: Save

关于此工具

You can convert cURL obtained from API documentation or browser developer tools into HTTP client code in the language used for implementation.

支持的功能

  • JavaScript、TypeScript、Python、Java、C#、PHP、Go、Ruby
  • HTTP method, header, JSON/form body, Basic authentication, Cookie
  • Multiline format and sensitive value masking in Bash, PowerShell, and Command Prompt

使用方法

  1. Paste cURL commands or select and drop text files.
  2. Convert
  3. Review the parsing warnings and potential sensitive information, then copy or save the code.

限制事项

  • It does not execute cURL and generated code and does not perform any external communication.
  • File references, shell variables, command substitutions, and unsupported options require manual adjustment after generation.
  • In the initial state, authentication information, cookies, tokens, etc. are replaced with placeholders.

隐私: 所选文件以及转换、分析结果仅在浏览器中处理,不会发送或保存到 Develop Tools 服务器。