cURL to Code — Convert curl to Python, JS, Go, Java

Paste a cURL command and instantly convert it to Python, JavaScript fetch, Go, Java or C++ code. Runs entirely in your browser.
cURL command
Paste a cURL command here. Works with Bash, PowerShell and CMD line continuations.
Local & private

Parsing and code generation happen entirely in your browser. The command is never uploaded.

If the cURL contains tokens or cookies, clear the box after use.

Supports -X, -H, -b, -u, -d, -F, -L, -k.

// Paste a cURL command on the left to see generated code here.
Tool Introduction

This free cURL converter takes a request copied from browser DevTools (Copy as cURL) or a packet capture tool, parses method, URL, headers, cookies, body and authentication, then generates ready-to-run code in JavaScript fetch, Python requests, Go net/http, Java HttpClient or C++ libcurl.

It understands Bash backslash, PowerShell backtick and CMD caret line continuations. Basic auth, form data and multipart uploads are recognized. Everything runs in your browser.