← All Tools

cURL to Code Converter

Paste a cURL command and get equivalent code in Python, JavaScript, Go, PHP, Ruby, or Rust.

Examples (click to load):
curl https://api.github.com/users/octocat
curl -X POST https://httpbin.org/post -H "Authorization: Bearer tok123" -H "Content-Type: application/json" -d '{"name":"test"}'
curl -X PUT https://api.example.com/items/1 -u admin:secret -d "status=active"