# curlconverter/curlconverter

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/curlconverter-curlconverter).**

8,149 stars · 1,019 forks · TypeScript · MIT

## Links

- GitHub: https://github.com/curlconverter/curlconverter
- Homepage: https://curlconverter.com
- awesome-repositories: https://awesome-repositories.com/repository/curlconverter-curlconverter.md

## Topics

`curl` `tree-sitter`

## Description

curlconverter is a browser-based tool and JavaScript library that transforms curl commands into equivalent source code across more than 30 programming languages and HTTP client libraries. It parses curl command arguments into an abstract syntax tree and generates idiomatic code by applying per-language templates, making it a curl command transpiler rather than a simple converter.

The tool operates entirely client-side without any server round-trips, ensuring all conversion happens privately in the browser without transmitting data externally. It can also function as a drop-in curl replacement that prints generated code instead of executing the HTTP request, and integrates with VS Code as a right-click context menu extension for pasting and converting curl commands directly in the editor.

Alongside the generated code, the conversion pipeline produces a list of warnings flagging unsupported or ambiguous curl options. The project is available as a JavaScript library accepting curl command strings or argument arrays, and as a web interface that captures network requests from browser developer tools for conversion.

## Tags

### Part of an Awesome List

- [Curl-to-Code Converters](https://awesome-repositories.com/f/awesome-lists/media/media-conversion/browser-based-converters/curl-to-code-converters.md) — Runs the entire curl-to-code conversion locally in the browser without sending data to any server.

### Development Tools & Productivity

- [Client-Side Conversion Engines](https://awesome-repositories.com/f/development-tools-productivity/client-side-conversion-engines.md) — Runs the entire curl-to-code conversion pipeline locally in the browser without server round-trips.
- [Curl-to-Code Converters](https://awesome-repositories.com/f/development-tools-productivity/curl-command-generators/curl-to-code-converters.md) — Performs the entire curl-to-code conversion locally using JavaScript without transmitting data to a server. ([source](https://curlconverter.com/dart/))
- [Curl-to-Code Transpilers](https://awesome-repositories.com/f/development-tools-productivity/curl-command-generators/curl-to-code-transpilers.md) — Converts curl commands into equivalent source code in 30+ programming languages and HTTP client libraries.
- [cURL Command Integration](https://awesome-repositories.com/f/development-tools-productivity/curl-command-integration.md) — Captures network requests from browser developer tools as curl commands for reuse. ([source](https://curlconverter.com/csharp/))
- [AST-Based Transpilers](https://awesome-repositories.com/f/development-tools-productivity/curl-command-integration/ast-based-transpilers.md) — Parses curl arguments into an AST and maps nodes to target language HTTP library calls.
- [Curl-to-Code Converters](https://awesome-repositories.com/f/development-tools-productivity/curl-command-integration/curl-to-code-converters.md) — Converts curl commands from browser developer tools into equivalent source code in multiple programming languages.
- [JavaScript Libraries](https://awesome-repositories.com/f/development-tools-productivity/curl-command-integration/javascript-libraries.md) — Ships a JavaScript library for programmatically converting curl commands into source code. ([source](https://cdn.jsdelivr.net/gh/curlconverter/curlconverter@master/README.md))
- [Curl-to-Code Converters](https://awesome-repositories.com/f/development-tools-productivity/curl-importers/curl-to-code-converters.md) — Runs the entire conversion process inside the browser without sending any data to a server. ([source](https://curlconverter.com/c/))
- [cURL Command Generators](https://awesome-repositories.com/f/development-tools-productivity/curl-command-generators.md) — Runs as a drop-in curl substitute that prints generated code instead of making the HTTP request. ([source](https://cdn.jsdelivr.net/gh/curlconverter/curlconverter@master/README.md))
- [Curl Parsing Libraries](https://awesome-repositories.com/f/development-tools-productivity/curl-command-generators/curl-parsing-libraries.md) — Provides a JavaScript API that accepts a curl command string or argument array and returns the translated code.
- [Curl Replacement Modes](https://awesome-repositories.com/f/development-tools-productivity/curl-command-generators/curl-replacement-modes.md) — Acts as a drop-in curl replacement that prints generated code instead of making the HTTP request.
- [Curl-to-Code Generators](https://awesome-repositories.com/f/development-tools-productivity/curl-command-generators/curl-to-code-generators.md) — Acts as a drop-in curl replacement that prints generated code instead of making the HTTP request. ([source](https://cdn.jsdelivr.net/gh/curlconverter/curlconverter@master/README.md))
- [C# Code Generators](https://awesome-repositories.com/f/development-tools-productivity/curl-command-integration/c-code-generators.md) — Generates C# HttpClient code from curl commands for direct use in .NET projects. ([source](https://curlconverter.com/csharp/))
- [Clojure Code Generators](https://awesome-repositories.com/f/development-tools-productivity/curl-command-integration/clojure-code-generators.md) — Generates Clojure HTTP client code from curl commands for use in Clojure projects. ([source](https://curlconverter.com/clojure/))
- [Dart Code Generators](https://awesome-repositories.com/f/development-tools-productivity/curl-command-integration/dart-code-generators.md) — Generates Dart HTTP client code from curl commands for use in Flutter and Dart projects. ([source](https://curlconverter.com/dart/))
- [VS Code Extensions](https://awesome-repositories.com/f/development-tools-productivity/vs-code-extensions.md) — Embeds the transpiler as a right-click context menu action in VS Code for pasting and converting curl commands.

### Programming Languages & Runtimes

- [HTTP Request Code Generators](https://awesome-repositories.com/f/programming-languages-runtimes/multi-target-code-generation/http-request-code-generators.md) — Generates HTTP request code in 30+ programming languages and formats from a single curl command.
- [Template-Based Code Generators](https://awesome-repositories.com/f/programming-languages-runtimes/source-code-generators/specification-from-code-generators/natural-language-code-generators/template-based-code-generators.md) — Applies per-language templates to translate parsed curl options into idiomatic HTTP client code.

### User Interface & Experience

- [Curl-to-Code Converters](https://awesome-repositories.com/f/user-interface-experience/file-uploaders/drag-and-drop-file-upload/in-browser-format-converters/curl-to-code-converters.md) — Runs the entire conversion process locally in the browser without sending data to any server. ([source](https://curlconverter.com/ansible/))
