# cURL to Code

> Convert a curl command into JS fetch, Node http, Python requests, PHP curl, or axios. Parsing is local and covers -X, -H, and --data.

Runs in your browser. Nothing is uploaded.

[Ops](https://toolbuddy.dev/categories/ops.md)

## About this tool

Parse curl -X, -H, and --data into JS fetch, Node http/https, Python requests, PHP curl, or axios. Quoted tokens are supported.

How to use: paste curl, pick a target, copy. Flags such as --compressed are ignored.

Example: a POST with JSON becomes fetch, a Node request, requests.request, or curl_init. Related: cURL generator to build the command first.

## Related Ops tools

- [Gitignore Generator](https://toolbuddy.dev/tools/gitignore-generator.md): Build a .gitignore from stacked templates for Node, Python, Go, Rust, Java, Next.js, macOS, and Windows. Output is composed locally.
- [.env Toolkit](https://toolbuddy.dev/tools/env-toolkit.md): Parse KEY=value env files, flag duplicates, and diff two .env blobs. Secrets in env files never leave the browser.
- [Docker Generator](https://toolbuddy.dev/tools/docker-generator.md): Generate a Dockerfile or a Compose service snippet from image, ports, and command fields. Snippets are built in the tab.
- [GitHub Actions Explainer](https://toolbuddy.dev/tools/github-actions-explainer.md): Explain a GitHub Actions workflow YAML: name, triggers, jobs, and steps. Parsing uses js-yaml in the browser.
- [cURL Generator](https://toolbuddy.dev/tools/curl-generator.md): Build a curl command from method, URL, headers, and body. The command is assembled locally so tokens in headers stay in the tab.
- [Tar Command Generator](https://toolbuddy.dev/tools/tar-generator.md): Build a tar create or extract command with gz, bz2, or xz flags. A small command helper, not an archiver.
