cURL to Python requests

Paste a cURL command, get equivalent Python code using requests (the default) or httpx (for async / HTTP/2). Handles headers, JSON bodies, basic auth, multipart uploads, query strings. Browser-only — useful when you need a focused Python answer rather than the multi-language general converter.

How to use the cURL to Python requests

Paste a cURL command (the format Chrome / Firefox / Safari produce via Copy as cURL all work). Pick a library. requests is the default — present in nearly every Python environment. httpx is interface-compatible plus adds async and HTTP/2. urllib is stdlib-only — useful when you can't add dependencies.