Перейти к основному содержимому
Develop Tools

Конвертер команд cURL в код

Бесплатный инструмент для преобразования команд cURL в HTTP-запросы на JavaScript, TypeScript, Python, Java, C#, PHP, Go и Ruby прямо в браузере.

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.

Конфиденциальность: Выбранные файлы и результаты преобразования/анализа обрабатываются в браузере и не отправляются и не сохраняются на сервере инструментов разработки.