Skip to content
Toolbento

cURL converter

Turn a cURL command into fetch, Axios, Python, Go, PHP or HTTPie code.

Everything stays on this device

cURL converter runs in your browser. The text and files you add are worked on by this device and are never uploaded, to us or to anyone else.

  • No uploads. The page is blocked from sending data to any other server.
  • No account, cookies, ads or tracking.
  • Fonts and scripts come from toolbento.app itself, so the page makes no requests to other companies.
  • Closing the tab clears your text and files from memory.

Read the full details on the privacy page.

Convert to
Convert to

Missing a feature or found a bug in cURL converter? Tell me on X (@_andrewtran) or by email.

How to use cURL converter

  1. Paste a cURL command, such as one copied from your browser network panel.
  2. Choose the language to convert to.
  3. Copy the code or download it as a file.

Questions and answers

Is my command sent anywhere?

No. The command is read by your browser on this device, so any tokens or cookies in it stay with you. The request itself is never sent.

Which options are understood?

Method, headers, data in all its forms, JSON, forms with files, basic sign-in, cookies, user agent and referer. Options with no match in code, such as -o, are left out and named.

Does it handle commands copied from a browser?

Yes, including long commands split over several lines with backslashes and quoted with $'…'.

Esc

Loading tools