Deterministic client-side cURL parser and code generator. Transpile raw cURL requests with headers, query parameters, basic auth, bearer tokens, and JSON payloads into modern idiomatic code for JavaScript, TypeScript, Python Requests & HTTPX, Go net/http, Rust reqwest, and PHP.
// JavaScript (Fetch API)
async function sendRequest() {
const response = await fetch("https://api.openai.com/v1/chat/completions", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer sk-proj-sample-token-xyz"
},
body: JSON.stringify({
"model": "gpt-4o",
"messages": [
{
"role": "user",
"content": "Explain quantum computing in one sentence."
}
]
}),
});
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}
const data = await response.json();
console.log(data);
return data;
}
sendRequest().catch(console.error);Transform command-line cURL syntax into clean, modern code snippets across JavaScript Fetch, Axios, TypeScript, Python Requests/HTTPX, Go, Rust, and PHP. Supports headers, cookies, basic auth, bearer tokens, and JSON payloads with zero network egress.
Convert in one click between Fetch, Axios, TypeScript, Python, Go net/http, Rust reqwest, and PHP cURL.
Accurately parses multi-line bash backslashes, single quotes, double quotes, and payload strings without external APIs.
Right-click 'Copy as cURL' in Chrome or Firefox DevTools and convert directly into backend integration code.
Translate vendor documentation examples (Stripe, Twilio, OpenAI) into typed application code instantly.
Construct cURL commands and export them to Fetch, Python, and Node.js.
Decode and inspect JSON Web Tokens without sending keys to any server.
Inspect HTTP Archive (HAR) network logs with interactive waterfall charts, status codes, and request timings.