Build cURL commands from a request and convert them to fetch or axios code, and parse cURL back.
Paste or type your input here, cURL Command Builder is loading…
cURL Command Builder assembles a cURL command from a method, URL, headers, query parameters and request body, with the quoting and escaping handled for you so the command runs exactly as shown. The same request is also produced as JavaScript fetch code and as axios code.
It works in reverse too. Paste a cURL command from API documentation or from your browser's developer tools, and it is split back into its parts so you can edit a header or the body and rebuild it, or convert it straight into fetch or axios for your codebase.
Quoting is where hand-written cURL commands usually break, especially a JSON body containing quotes or a header value with spaces. Entering values in the tables avoids that entirely.
Use it to document an API call in a README or a ticket, to share a reproducible request with a colleague, or to move a request from a terminal into an app. Everything happens locally in your browser, so tokens and keys in your headers are not sent anywhere.
| Price | Free, no signup, no paywall, no watermark |
|---|---|
| Works on | Any modern browser: desktop, tablet, and mobile |
| Processing | In your browser, files never leave your device |
| Account required | None |
| Category | Developer Tools |
Set the method and URL, then add headers, params and a body
Copy the generated cURL command
Switch the output to fetch or axios to get code instead
Or paste an existing cURL command to load it into the builder
Build a cURL command from a method, URL, headers, query params and body
Convert the same request to fetch (JavaScript) or axios code
Parse an existing cURL command back into its parts
Proper quoting and escaping so the command runs as-is
Everything happens locally in your browser
Turning a request you built in the UI into a shareable cURL command
Converting a cURL command from docs into fetch or axios code
Documenting an API call for a README or ticket
Quickly editing the headers or body of an existing cURL command
Add headers and params in the tables, the tool handles the quoting for you.
Use the fetch/axios output to drop the request straight into your codebase.
Common questions about this tool, its workflow, and what to expect before you use it.
No ratings yet. Be the first to say how cURL Command Builder worked for you.
Reviews appear here once our team has read them, so everything you see is from someone who signed in and used the tool.
Get notified about new tools, features, and tips. No spam, unsubscribe anytime.
Beautify, minify, sort, repair and validate JSON with precise error location, a collapsible tree view and path queries.
Try itUTF-8-safe Base64 encode & decode with a URL-safe variant, line-wrapping and file-to-Base64 (data URI).
Try itEncode and decode URLs and components, with a live breakdown of query parameters.
Try itDecode and inspect a JWT's header, payload and claims with human-readable timestamps and live expiry status.
Try itGenerate MD5, SHA-1, SHA-256, SHA-384, SHA-512 and HMAC digests for text or files.
Try itTest and debug regular expressions with live match highlighting, capture groups, replace and example patterns.
Try itMinify HTML, strip comments and whitespace while protecting pre/script/style, with a size-saved readout.
Try itMinify CSS, remove comments and whitespace safely (strings and data URIs preserved) with a size-saved readout.
Try itWriting a roundup or tutorial? Embed the live cURL Command Builder so readers use it right on your page, or drop in a ready-made card that links to it. Free to use, always.
Preview
Build cURL commands from a request and convert them to fetch or axios code, and parse cURL back.
Use cURL Command Builder free →Live tool (iframe)
Readers use the real, working tool right on your page, with a small credit line underneath.
Embed card (HTML)