mtools.lol

cURL to Code

Convert cURL commands into JavaScript fetch, Python requests or Node axios.

How it works

  1. 1Paste a cURL command (e.g. copied from browser dev tools).
  2. 2Choose the language.
  3. 3Copy the code.

Features

  • Headers, JSON and form bodies, basic auth and cookies.
  • Handles quotes and line continuations.
  • Nothing is run: the command is only parsed.
  • Private: runs in your browser; nothing is uploaded.

Frequently asked questions

Is my token sent anywhere?

No. Everything happens in your browser.