BRev Free Tools
At BRev Digital, essentials should be a right — free, forever.
Open in workspacekeep several tools open at once
All tools
cURL converter

curl to axios

Paste a curl command and get the axios equivalent: a single config object with url, method, headers, params and data. JSON bodies are passed as objects — axios serializes and sets the Content-Type itself — and the response arrives pre-parsed on response.data, no res.json() step.

Axios differs from fetch in one behaviour worth knowing before you port error handling: it rejects the promise on any non-2xx status, so a 404 lands in catch, not in your success path. The optional error-handling toggle scaffolds that catch correctly.

Like every tool here, conversion runs entirely in your browser — the auth headers and cookies embedded in a copied curl command never leave the page.

curl commandbash or Windows cmd — multi-line is fine
Private by design: curl commands often carry auth tokens, cookies and API keys — everything here runs in your browser and nothing leaves this page.
Converted codepick a target — conversion runs locally
Paste a curl command above — the converted code appears here.
Code → curlpaste a fetch(…) call and get the equivalent curl command back
fetch source
curl
Paste a fetch call to convert it.
Import from a HAR fileexport a .har from the DevTools Network tab — the file is read locally
Drop a .har file here, or click to choosePick a request, get its curl and code.
Powered by curlconverter (MIT) running in your browser — commands, tokens and HAR files never leave your device.