cURL to code

Input
Output

cURL to Code

API docs and DevTools give you a cURL command; your code needs fetch, axios or requests. Paste the command to get the same request as code, with its headers, basic or bearer auth, cookies, JSON, form or multipart body.

How do I use the cURL to code?

  1. Copy a request as cURL from DevTools or API docs, and paste it.
  2. Pick JavaScript fetch, axios or Python requests.
  3. Copy the code into your project.

What does the cURL to code do?

  • JSON bodies as objects, forms as URLSearchParams or dicts
  • Basic auth, bearer tokens and cookies
  • Multipart uploads with FormData or files=
  • Commands copied from Chrome, Firefox and Windows (cmd)
  • -k becomes verify=False in Python
  • The request as JSON too

Frequently asked questions

Does it run the request?
No. It only writes the code; nothing is sent.
Is my data uploaded?
No. Bracely runs entirely in your browser, so nothing you paste or open leaves your device.

More JSON tools

Bracely has more than 65 JSON tools in one page. Related ones:

Runs entirely in your browser. Nothing you paste is uploaded. Made by Saurabh Pagrut. About · Privacy policy
Last updated · Version 4.8 · Changelog
Saurabh Pagrut on GitHub · LinkedIn · X · YouTube · Instagram