curl → fetch / axios converter — offline
Paste a curl command, get ready-to-use JavaScript — with your API keys staying on your device.
100% private — files never leave your device
curl command
How it works
- 1
Paste a curl command (multi-line with \ works).
- 2
fetch() and axios() versions generate live.
- 3
Copy the one your codebase uses.
Related tools
Frequently asked questions
Are my curl commands uploaded?
No — parsing happens in your browser. Curl commands routinely contain API keys and tokens in headers, which is exactly why they shouldn't be pasted into server-based converters.
Which curl options are understood?
-X/--request, -H/--header, -d/--data (and variants), --json, -u/--user (becomes a Basic auth header), plus common no-ops like -s and -L. Multipart -F isn't supported yet.
What code do I get?
Both a modern fetch() call and an axios() call, with JSON bodies converted to real objects instead of strings.