cURL to Axios ConvertercURL to Axios

AppHelp

Convert cURL commands to Axios

Paste cURL and generate an Axios config snippet with URL, method, headers, and data.

POSThttps://api.example.com/orders
Code
import axios from "axios";

const response = await axios({
  url: "https://api.example.com/orders",
  method: "post",
  headers: {
  "Content-Type": "application/json",
  "Authorization": "Bearer TOKEN"
},
  data: "{\"sku\":\"A100\",\"qty\":2}"
});

Features

  • move API calls into apps
  • create Axios examples
  • debug request headers

Frequently asked questions

Is my data uploaded?
No. The tool runs locally in your browser by default.
Do I need an account?
No account is required.