Back to Apps

cURL Converter

Paste a cURL command and instantly convert it to working code in Python, JavaScript, Go, PHP, Ruby, Java, C#, Rust, and more.

Supported Languages

Python (requests)JavaScript (fetch)Node.js (axios)Go (net/http)PHP (cURL)Ruby (net/http)Java (HttpClient)C# (HttpClient)Rust (reqwest)Swift (URLSession)Kotlin (OkHttp)R (httr)

Example

Input cURL:

curl -X POST https://api.example.com/data \
  -H "Authorization: Bearer token123" \
  -H "Content-Type: application/json" \
  -d '{"key": "value"}'

Output (Python):

import requests

headers = {
    "Authorization": "Bearer token123",
    "Content-Type": "application/json",
}

data = {"key": "value"}

response = requests.post("https://api.example.com/data",
                         headers=headers, json=data)
print(response.json())
RequestBin
© Copyright 2026 RequestBin.