cURL to Python
Convert static cURL commands to Python code using requests, HTTPX, urllib or http.client. Conversion runs locally and masks sensitive headers by default.
Enabling local controls…
Enabling local controls…
Static cURL command
The command is parsed in page memory. The page sends no HTTP request, runs no generated code, and stores nothing in local storage or the URL.
Python requests
Paste one static command and convert. Editing source or target revokes export and secret reveal.
The original body is written into the example without reparsing JSON, so large integers retain their digits.
Requires requests. Returns the first response and rejects -L. This library may percent-encode URL punctuation, including brackets, or normalize existing escapes. Use HTTPX or http.client for repeated headers. Network timeout: 10 seconds. Response cap: 1 MiB.
How to use this tool
Paste a command or load a sample, then convert. Review the runtime notes before copying or downloading.
When not to use it
The converter only generates code. Unsupported flags, file inputs and dynamic shell syntax stop conversion.
Read the guide →