rocket

cURL Converter

A curl-to-fetch converter: paste a curl command and get a structured breakdown (method, URL, headers, body) plus equivalent JavaScript fetch() code. Handles quotes, line continuations, -X/-H/-d/-u/-G flags (basic auth, query promotion) and copy.

npx shadcn@latest add https://rocket.gozturk.dev/r/curl-converter.json
POSThttps://api.acme.io/v1/orders

headers (2)

Content-Typeapplication/json
AuthorizationBearer sk_live_123

body

{"sku":"TSHIRT-M","qty":2}

fetch()
fetch('https://api.acme.io/v1/orders', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer sk_live_123'
  },
  body: '{"sku":"TSHIRT-M","qty":2}'
});