cURL to code

Paste a curl command and get equivalent request code for fetch, axios, Python requests, Go or PHP. Method, headers, JSON and form bodies, and basic auth are all handled. Nothing is uploaded.

Your curl command
Target language

Everything runs in your browser. No upload, no sign-up.

How it works

STEP 1

Paste your curl command

Drop in a curl line copied from your terminal, an API doc or your browser’s “Copy as cURL”. It is parsed right here — nothing leaves your device.

STEP 2

Pick a language

Choose JavaScript fetch, Node axios, Python requests, Go net/http or PHP cURL. The method, headers, body and auth are mapped to idiomatic code.

STEP 3

Copy the code

Copy the generated request with one click and paste it straight into your project. No sign-up, nothing uploaded.