PeekTool
English

cURL to JavaScript and Python

Convert a cURL HTTP request into a JavaScript fetch or Python requests snippet with headers and body.

Runs in your browser.

Tool settings

Result

How to use this tool

Paste a cURL request with an inline body, select JavaScript or Python and check the generated code. The tool sends no HTTP request.

Example input

curl https://example.com/api -H "Accept: application/json"

Related tools