Free developer tool

Curl to code converter

Paste a curl command — from your browser’s dev tools, an API reference or a teammate — and get the same request as Python, JavaScript, Go, Java, PHP, C# and more.

Runs in your browser — nothing you paste is sent to a server.

Python

Send it, save it to a collection, and add tests in the apikumo API client.

Open in apikumo
FAQ

Frequently asked questions

Is my curl command sent to a server?

No. The command is parsed and converted in your browser, so tokens, cookies and request bodies you paste never leave the page.

Which languages are supported?

Shell, JavaScript, Python, Java, Swift, Go, PHP, HTTP, C, C#, Objective-C, Ruby, OCaml, R. Most languages offer more than one client library — for JavaScript you can pick Fetch, Axios, jQuery, XHR or several Node clients.

Which curl flags are supported?

-X, -H, -d, --data-raw, --data-binary, --data-urlencode, -F, -u, -G and -I, plus their long forms. Other flags, such as --compressed or -L, are ignored and listed as a warning under the input.

Can I run the request?

Yes. Click Open in apikumo and the request opens as a draft tab in the apikumo API client, where you can edit it, send it and save it to a collection. Nothing is sent until you press Send.

Still have questions? Contact us

More free tools

All free tools →

Save requests, run tests and publish docs

apikumo keeps your requests in collections, runs them as test suites and publishes them as hosted docs — free for up to 3 members.

No card required · Sign in with Google, GitHub, or Discord