crud.md
// crud.md / curl-to-code

Turn a curl command into code. fetch, axios, requests.

Paste the curl line from someone's docs or your terminal and get the same request as JavaScript fetch, axios, Python requests, or HTTPie. Headers, query params, JSON/form bodies, and basic auth all carry over. In your browser.

curl-to-code · v1.0 local-only
Generated code

FAQ

Is my curl command uploaded?+

No. The command is parsed and converted entirely in your browser — it is never sent to a server. We count anonymous, aggregate usage on our own server (a page view, that a command was converted) — never the command itself, its URL, headers, tokens, or body.

What does it understand?+

The method (-X), headers (-H), data bodies (-d, --data-raw, --data-urlencode — multiple are joined), basic auth (-u → an Authorization: Basic header), and -G (which moves the data into the query string). JSON and form bodies are detected and pretty-printed. Line-continuations (\) and single/double quotes are handled like a real shell.

Do I need an account?+

No login, no email, no payment. This one is free.