Code Converter•Runs on Request

cURL to Code Converter

Convert cURL commands into JavaScript Fetch, Python Requests, Node.js Axios, Go, and PHP.

Developer workbench

Configure. Run. Inspect.

Requests run only when you click Run. Browser CORS restrictions apply; remote responses are never simulated.

⌘ / Ctrl + Enter to run
116 input bytes

Output

How to Use cURL to Code Converter

01

Paste your raw cURL command into the input box.

02

Select target programming language (JavaScript, Python, Go, PHP).

03

Copy the idiomatic code snippet ready for your application.

Frequently Asked Questions

Does it parse -H headers and -d payload?

Yes, HTTP method, headers, auth tokens, and request body are translated automatically.

Related Developer Tools

Explore more free client-side developer utilities in this category

View All Tools