cURL to Fetch Converter
Paste a curl command and get ready JavaScript fetch or Python requests code, with headers, JSON body, forms, and basic auth. No request is ever sent.
0 characters0 bytes
0 characters0 bytes
How to Use It
- Paste the curl command. In the browser DevTools, open the menu of a request and choose Copy as cURL (bash).
- Choose the output language.
- Copy the code, and read the notes.
Questions and Answers
Is my request sent?
No. The tool only reads the command and writes code. Tokens and passwords stay in your browser.
Good to Know
The tool does not send the request. It reads bash syntax, not Windows cmd syntax (^). Options such as -k, -L, and proxies are not in the code, and the tool lists them.
Related Tools
- URL Parser and InspectorSplit a URL into scheme, host, path, and parameters, read internationalized domains (Punycode), and see the signs of a deceptive link.
- HTTP Header ParserPaste HTTP headers from the browser developer tools or curl to see each one explained, and to check the security headers and cookies.
- JSON Formatter and ValidatorPretty-print or minify JSON, or find its errors with the line and column.
Source code of this tool (opens in a new tab)Report a problem on GitHub (opens in a new tab)