DevToolsHub Free · Fast · 100% in your browser

cURL to Code Converter

Convert cURL commands to C#, JavaScript, Python, Go and more.

About this cURL to code converter

Convert cURL commands into ready-to-run code for C# HttpClient, JavaScript fetch, Node.js axios, Python requests, Go net/http and PHP. Copy a request from your browser's developer tools with Copy as cURL, paste it here and get equivalent code with the same method, headers, body and authentication.

How to use the cURL to Code Converter

  1. Paste a cURL command.
  2. Pick the target language.
  3. Copy the generated code into your project.

Example

curl -X POST https://api.example.com -d '{"a":1}'  →  await client.SendAsync(request) with a JSON body

Frequently asked questions

Which cURL options are supported?

-X, -H, -d/--data/--data-raw/--data-binary/--data-urlencode, --json, -F, -u, -A, -b, -e, -G, -I, -k and -L, plus quoted and multi-line commands from Bash, PowerShell and cmd.

Is my token sent anywhere?

No. Conversion happens in your browser and the request is never executed.

Is my data safe?

Yes. The tool runs entirely in your browser using WebAssembly. Nothing you type or upload is sent to a server, logged or stored.

Is it free?

Yes, completely free with no sign-up, no limits and no watermarks. It also works offline once the page has loaded.

An unhandled error has occurred. Reload ✕