curl Converter

Convert curl commands to Python, JavaScript fetch, Node.js, Axios, PHP, Go, Java, C# and more. Paste a curl command from your terminal, API docs or browser and get REST API client code online. Free and private: everything runs in your browser.

Toolscurl Converter
Examples:

Converted in your browser. Nothing you paste is sent to a server.

import requests

headers = {
    "Accept": "application/json",
}

response = requests.get(
    "https://api.example.com/users?page=2",
    headers=headers,
)

Copy a request as curl

  1. Open the developer tools and go to the Network tab.
  2. Right-click a request.
  3. Choose Copy → "Copy as cURL (bash)".
  4. Paste it into the converter above.

Copied commands often contain cookies and tokens. The converter runs in your browser, but be careful when sharing the generated code.

More converters

If you need to automate website screenshot rendering or integrate screenshotting into your application or SaaS, please, check out the best screenshot API—ScreenshotOne.
Check out more free tools.

Frequently Asked Questions

Discover quick and comprehensive answers to common questions about our platform, services, and features.

What does the curl converter do?
It turns supported curl commands into code for over 20 HTTP clients, including Python Requests, JavaScript fetch, Node.js, Axios, PHP curl, Guzzle, Go, Java, C#, Ruby and Wget. Supported request details are preserved according to each client's capabilities. Browser fetch uses browser-managed headers and cookies.
Can I convert a curl command from API documentation into REST API client code?
Yes. Paste the Bash curl example from any REST API documentation and pick a language. Placeholders like $API_TOKEN are kept as text, so you can replace them with your values.
Do you send my curl command to a server?
No. The conversion runs entirely in your browser with the open-source requestcodegen library. Nothing you paste is sent to a server or stored, so tokens and cookies stay on your computer.
How do I get a curl command from my browser?
Open the developer tools, go to the Network tab, right-click a request and choose Copy → "Copy as cURL (bash)". Then paste it into the converter.
Which curl options are not supported?
Options that read files or stdin (such as -d @file or -F), shell features like pipes and $(...), and multiple requests in one command are not supported. The converter shows an error instead of generating incomplete code. Output-only options such as -s, -v, -o and -w are accepted and left out of the generated code.

Integrate today

Automate screenshot rendering with the language you love

Send simple HTTP requests or use native libraries for your language of choice.

Mike Roberts
Mike Roberts
Founder,SpyFu

ScreenshotOne is the best product on the market - and that's before you take into account how responsive and easy Dmytro is to work with.

Any time we've found a rare edge case, it's been resolved in hours.

Great company, great founder - can't say enough!

Without writing a line of code

No-code integrations

Quickly render website screenshots with Zapier, Airtable, Make and other popular no-code platforms of your choice.

Automate Screenshots in ZapierAutomate Screenshots in AirtableAutomate Screenshots in MakeAutomate Screenshots in BubbleAutomate Screenshots in n8n.io

Read

Lessons from running screenshot rendering infrastructure

Practical guides and real updates based on our experience operating rendering infrastructure at production scale.

Automate website screenshots

Exhaustive documentation, ready SDKs, no-code tools, and other automation to help you render website screenshots and outsource all the boring work related to that to us.