cURL Converter

Turn any curl command into fetch, Python, Go, PHP, or Rust.

Runs in browser

Use from your agent

Streamable HTTP at https://benchline.fabwaseem.com/mcp. No key. The tool name is convert_curl.

mcp.jsonjson
1{
2 "mcpServers": {
3 "benchline": {
4 "url": "https://benchline.fabwaseem.com/mcp"
5 }
6 }
7}
tools/calljson
1{
2 "jsonrpc": "2.0",
3 "id": 1,
4 "method": "tools/call",
5 "params": {
6 "name": "convert_curl",
7 "arguments": {
8 "command": "example",
9 "target": "fetch"
10 }
11 }
12}

How it works

Free curl converter. Paste a curl command and get equivalent code for JavaScript fetch, Python requests, Go net/http, PHP cURL, and Rust reqwest. Headers, bodies, basic auth, and common flags are translated automatically.

  1. 01

    Paste the curl command

    Drop in a curl command, including multi-line ones with backslash continuations.

  2. 02

    Pick the target

    Switch between fetch, Python, Go, PHP, and Rust tabs.

  3. 03

    Copy the snippet

    Each tab has copy and download buttons. Check the warnings for ignored flags.

FAQ