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.
0 characters · 0 lines
0 characters · 0 lines
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
Build a .gitignore from stacked templates for Node, Python, Go, Rust, Java, Next.js, macOS, and Windows. Output is composed locally.
.env Toolkit
Parse KEY=value env files, flag duplicates, and diff two .env blobs. Secrets in env files never leave the browser.
Docker Generator
Generate a Dockerfile or a Compose service snippet from image, ports, and command fields. Snippets are built in the tab.
GitHub Actions Explainer
Explain a GitHub Actions workflow YAML: name, triggers, jobs, and steps. Parsing uses js-yaml in the browser.
cURL Generator
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
Build a tar create or extract command with gz, bz2, or xz flags. A small command helper, not an archiver.