cURL converter

Paste any curl command. Get clean, readable code in the language and library you actually use — 18 targets, fully client-side.

InputcURL command
1 secret
MethodPOST·Headers2·Body46 B· Chars 187
OutputJavaScript · fetch(browser/Node)
const response = await fetch("https://api.example.com/v1/messages", {
  method: "POST",
  headers: {
    "Authorization": "Bearer sk_test_123",
    "Content-Type": "application/json"
  },
  body: "{\"to\":\"+15551234567\",\"body\":\"Hello from curl\"}",
  redirect: "manual"
});
const data = await response.json();
Inspect

Notes

  • Fully client-side. Your commands never leave the browser.
  • 18 targets. fetch, axios, ky, Node, requests, httpx, aiohttp, Go, PHP, Guzzle, Ruby, Rust, Java, Kotlin, C#, PowerShell, Swift, HTTPie.
  • Shareable links. Click Share to copy a URL with your command pre-filled.
  • Multipart & auth. -F uploads and -u user:pass map to idiomatic constructs in each language.