cURL Converter
Convert a cURL command to code — Python, JavaScript, Java, PHP, Go, Ruby and C#
Paste a cURL command and get the same request as code — Python, JavaScript, Java, PHP, Go, Ruby or C#. It runs in the browser, so tokens and cookies never leave your machine. Handy for turning a request copied from DevTools into a working script.
How to use
- 1Paste a cURL command — Use "Copy as cURL" in DevTools (Chrome/Firefox) — both the bash and Windows cmd styles work.
- 2Pick a language and client — Python, JS, Java, PHP, Go, Ruby or C#. JS and Java let you pick the client: fetch/axios, HttpClient/OkHttp/Apache.
- 3Copy the code — Imports, headers and body are already in place — drop it into your project.
Examples
curl 'https://api.example.com' → requests.get(...)curl ... → fetch(url, options)curl ... → HttpRequest.newBuilder()-X POST --data-raw '{...}' → body publisher-H 'Authorization: Bearer …' → headers mapWhen to use for web scraping
You have a working request as cURL — from DevTools, Postman, or an API doc — and you need it as code. Instead of hand-translating the URL, method, headers and body, paste the command and copy the snippet. It's most useful for scraping: right-click a request in DevTools → Copy as cURL, convert it to Python or Node, and you start from the exact headers and cookies the server expects. Everything is computed locally, so requests with tokens or cookies stay on your machine.