How to use Fetch/Axios to cURL

  1. Paste a fetch() or axios() call from your code.
  2. Click Convert to get the equivalent cURL command.
  3. Copy the cURL to run in terminal or share with others.

Example

Input

Your input or data here

Output

Result will appear here after running the tool

Frequently asked questions

What fetch/axios patterns are supported?
Simple one-line or multi-line fetch(url, { method, headers, body }) and axios({ url, method, headers, data }). Common quoting styles are supported.
Can I convert cURL to fetch?
Yes. Use the cURL to Fetch/Axios tool for the opposite direction.