- 100% client-side isolated
- 0ms latency
Universal cURL converter
Paste a cURL command and get runnable code for JavaScript, Python, Go, Node.js, PHP and Java. The parser reads the method, headers, query parameters, credentials and body out of the command itself.
- Eight languages, one paste
- Errors flagged, not guessed
- Nothing is uploaded
Paste a command, pick a language
The request summary between the input and the code shows exactly what the parser read, so a misread header is visible before it reaches your project.
1. Paste the cURL command
Quotes, line continuations, short flags and -G are all understood.
- Method
- POST
- Headers
- 3
- Body
- json
- Auth
- bearer
- Query params
- 0
- Cookies
- 0
2. Copy the code
Eight targets, one request: the same URL, method, headers and body every time.
Request snippets
Pick a language, then copy or download the file.
const payload = { "name": "Ada Lovelace", "email": "ada@example.com", "role": "admin"}; const response = await fetch("https://api.example.com/v1/users", { method: "POST", headers: { "Content-Type": "application/json", "Accept": "application/json", "Authorization": "Bearer sk_live_9f2c", }, body: JSON.stringify(payload),}); if (!response.ok) { throw new Error(`Request failed with status ${response.status}`);} const data = await response.json();console.log(data);- 100% client-side isolated
- 0ms latency
- 8 languages
How it works
API tooling that runs in your tab
No proxy, no sign-up and nothing to wait for: commands are parsed, requests are sent by your browser and fixtures are generated inside this page, so the result appears while you type.
1. Paste the command or the request
A cURL command, a URL with headers, or a set of toggles: the studio reads what you give it and shows how it interpreted every part before generating anything.
2. Pick the target you actually use
Eight code targets for the converter, three envelopes for the mock payloads, and a method, header and body editor for the inspector. Every option is a visible control, never a hidden default.
3. Watch the output update live
Syntax-highlighted snippets, a formatted response body, or a full JSON fixture re-render as you type. There is no submit step and no queue: the work happens on this device.
4. Check it before you paste it
Malformed quotes, headers without a colon, a missing Content-Type, a blocked CORS request and flags with no code equivalent are all reported next to the result instead of being silently dropped.
Privacy by architecture
Nothing is uploaded — and you can verify it
Privacy claims are cheap, so this one is falsifiable: there is no server-side code path here that could receive your data even if it wanted to.
No proxy, so no token to leak
APICraft ships no backend route that accepts a request, a command or a credential. Open DevTools, watch the Network tab and use any tool: the only requests are the page assets, plus the one you explicitly send from the inspector.
Your input stays in memory
Commands, headers and bodies live in React state inside the tab. They are never written to localStorage and never persisted, so closing the tab really does discard them.
Deterministic output, byte for byte
The code generators never consult the clock, the locale or a random source, and the mock generator is driven by your seed — so the same input always produces exactly the same output.
Free forever, no account required — the tools are static pages that run entirely on the client.
cURL converter FAQ
The flags that are understood, how quoting is handled, and what happens to flags with no equivalent.
How does the converter read my command?
It tokenises the command with POSIX shell rules first — single quotes, double quotes, backslash escapes and line continuations — and only then interprets the tokens as cURL flags. That order is what makes quoted JSON bodies and attached values such as -H'X: y' work correctly.
Which cURL flags are understood?
The request-affecting ones: -X/--request, -H/--header, -d/--data, --data-raw, --data-binary, --data-urlencode, --json, -F/--form, -u/--user, -b/--cookie, -A/--user-agent, -e/--referer, -G/--get, -I/--head, -L/--location, -k/--insecure, --compressed, -o/--output, -x/--proxy and --url. Short flags bundled as one word, such as -sSL, are expanded too.
What happens to flags with no code equivalent?
They are reported instead of being dropped silently. For example -k has no browser counterpart, --compressed is implicit in every modern client, and a proxy is a server-side setting — each of those becomes a note under the generated snippet so you know why it is missing.
Does it warn me about a malformed command?
Yes. An unterminated quote, a missing URL, a header line without a colon, an unknown flag or credentials without a colon are each listed with the reason. Errors stop the conversion; warnings still generate code because cURL would also accept the command.
Is the output deterministic?
Every generator is a pure string function with no clock, locale or randomness, so the same command always produces byte-identical code, which makes the snippets diff-friendly if you commit them.
More free tools in the hub
API Tester
Send GET, POST, PUT, PATCH, DELETE, HEAD and OPTIONS requests straight from the browser with custom headers and a JSON body. Read the status code with its meaning, the formatted response, the headers and the round-trip time.
Open toolMock JSON
Generate realistic dummy data for REST APIs: users, e-commerce orders, products, blog posts, comments and invoices, with field-level control, 1 to 500 rows, a reproducible seed and one-click export as .json or NDJSON.
Open toolGraphQL Tester
SoonCompose a query with variables, introspect the schema of an endpoint and export the request as cURL or code. In development on the same client-side pipeline.
In development