Skip to content
benchline
ToolsMCPAbout
benchline

82 tools for people who ship the web. 70 run entirely in your browser. No account, no upload.

All tools operational

Tools

All toolsllms.txt generatorAI SEO checkerOG image generatorJWT decoder

Categories

All categoriesDeveloperData & FormatsSEO & AI SearchImage & MediaPDF & Documents

For agents

MCP setupAI accessllms.txtllms-full.txtOpenAPI

Benchline

AboutFounderPrivacyGitHubSitemap

benchline

© 2026 Benchline. Built by Waseem Anjum. MIT licensed.Built for the browser, callable over MCP.
  1. Tools
  2. Network
  3. HTTP
  4. cURL Converter

cURL Converter

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

Runs in your browser
Use via MCP

MCP

Use this tool from your agent

Add the server once, then ask for the job in plain words. No key.

Setup guideAll MCP tools

Tool name

convert_curl

Endpoint

https://benchline.fabwaseem.com/mcp
Auth
None
Rate
60 / min
  1. 1Add the server config for your client.
  2. 2Ask your agent to run convert_curl, or describe the job.
  3. 3Or send the tools/call request yourself.
~/.cursor/mcp.jsonjson
1{
2 "mcpServers": {
3 "benchline": {
4 "url": "https://benchline.fabwaseem.com/mcp"
5 }
6 }
7}
tools/call requestjson
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}

Next

Related tools

  • HTTP headersFollow redirects and grade the security headers on a public URL.HTTPMCPNew
  • URL encoder and parserEncode or decode a URL, then break the query string into parameters.URLsMCPNew
  • JSON formatterPretty-print, minify, and validate JSON, with the exact line and column when it fails.JSONMCPNew
  • GraphQL ClientQuery any GraphQL endpoint with variables, headers, and history.HTTPMCPNew

Guide

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. 1Paste the curl commandDrop in a curl command, including multi-line ones with backslash continuations.
  2. 2Pick the targetSwitch between fetch, Python, Go, PHP, and Rust tabs.
  3. 3Copy the snippetEach tab has copy and download buttons. Check the warnings for ignored flags.

FAQ

Questions people ask

JavaScript (fetch)Python (requests)Go (net/http)PHP (cURL)Rust (reqwest)More

cURL

curl commandplaintext
1
2
3
4
curl -X POST https://api.example.com/v1/items \
-H "Content-Type: application/json" \
-H "Authorization: Bearer secret" \
-d '{"name":"widget","qty":3}'
  • Method
    POST
  • URL
    https://api.example.com/v1/items
  • Content-Type
    application/json
  • Authorization
    Bearer secret
  • Body
    {"name":"widget","qty":3}

JavaScript (fetch)

JavaScript (fetch)javascript
1const res = await fetch("https://api.example.com/v1/items", {
2 method: "POST",
3 headers: {
4 "Content-Type": "application/json",
5 "Authorization": "Bearer secret",
6 },
7 body: "{\"name\":\"widget\",\"qty\":3}",
8});
9
10const data = await res.json();
11console.log(data);
POST https://api.example.com/v1/items⌘⇧C copy · esc reset