# cURL to Code Converter

> Convert a cURL command into Python requests, JavaScript fetch or Node.js code.

- Type: free browser tool
- Category: Developer tools
- Page: https://www.sandbase.ai/tools/developer/curl-converter

## About

Paste a cURL command copied from API docs or browser dev tools and get the same request as ready-to-run code.

## How it works

1. **Step 1** Paste a cURL command. Line breaks with a trailing backslash are fine.
2. **Step 2** Pick Python, JavaScript fetch or Node.js.
3. **Step 3** Copy the code.

## FAQ

### Which cURL options are supported?

The URL, -X/--request, -H/--header, -d/--data, --data-raw, --data-binary, --json, -u/--user, -G/--get, -F/--form text fields and --compressed. Other flags are ignored and listed under the code.

### Does it send the request?

No. It only rewrites the command. Nothing is sent and nothing leaves your browser.

### Can I convert SandBase API calls?

Yes. Every model and API page on SandBase has a cURL example you can paste here.
