cURL to code
Input
Paste or drop your data here, or open a file.
New to Bracely?
Everything stays in your browser.
Compare with
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?
- Copy a request as cURL from DevTools or API docs, and paste it.
- Pick JavaScript fetch, axios or Python requests.
- 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:
- GraphQL request
- MessagePack ⇄ JSON
- Parquet viewer
- Avro viewer
- JSON to YAML
- JSON to CSV
- JSON to XML
- JSON to Excel
- YAML to JSON
- CSV to JSON
- XML to JSON
- JSON to TOML
- TOML to JSON
- JSON Lines / NDJSON
- GraphQL to TypeScript
- Avro to code
- List tools
- Remove duplicates
- JSON Formatter
- JSON Validator
- JSON Viewer
- JSON Repair
- JSON Diff
- jq Playground
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