Convert cURL commands to Elixir
Paste a cURL request, review the equivalent Elixir code it produces, and copy that code for use in your own project.
This page is built around one simple workflow: input first, generated code second, with a quick way to copy the result.
Paste a command, then review the Elixir output
Start with the input area for the cURL command you want to convert to Elixir. The field is pre-filled with a simple example, curl example.com, so you can see the expected shape of an input before replacing it with your own request. After entering a command, check the Elixir code area directly below it. If the output looks right, use the copy control beside it rather than selecting the text by hand. A useful check before copying is to compare the destination and method in your original command with the generated code, then confirm that any headers or body data you care about are still present in the form you expect.
A quick checklist before you copy the result
Before you convert anything, run through this short checklist. Confirm the command is complete and not truncated by a line break. Confirm the URL, method, headers, and payload belong together as one request. Remove or replace any secrets that should not be pasted into a browser tool. Convert the command, then read the generated Elixir code instead of running it blindly, especially if it contains authentication or write operations. Finally, test the copied code in a safe environment and adjust library-specific details to match your project setup.
Getting a cURL command from your browser
Many people start from a request they can already see in a browser rather than writing cURL by hand. The linked walkthroughs cover Chrome, Safari, and Firefox, so pick the browser you actually use and follow its steps for copying a network request as cURL. Once you have that command, return to the converter above and paste it into the input area. This keeps the two jobs separate: the browser guide handles capture, and this page handles conversion.
Going further with Elixir web scraping
A converted request is a starting point, not a complete scraping workflow. If you want to build a fuller Elixir scraping approach around the request you just converted, the linked Elixir web scraping tutorial is the natural next step. It is useful for deciding how to fetch pages repeatedly, handle responses, and structure extraction once the basic request shape is clear.
Other cURL converters
Elixir is only one of many targets. If your project lives in another language, the related converters cover CFML, Dart, Go, Java, JavaScript Fetch, JSON, matlab, NodeJS with Axios, NodeJS with fetch, NodeJS with Request, php, Python, R, and Rust. Choosing the converter that matches your stack avoids translating the same request twice.
Frequently asked questions
How do I convert a cURL command on this page?
Paste a cURL command into the input area labelled for the command you want to convert. The generated Elixir code appears in the output area, where the copy control can be used to place it on your clipboard.
Where can I learn to copy a request as cURL from a browser?
Use your browser's network tools to inspect a request, then copy it as cURL. Separate walkthroughs are available for Chrome, Safari, and Firefox, linked below.
What if I want to learn Elixir web scraping more broadly?
The page also links to a tutorial on web scraping with Elixir for readers who want to go beyond a single converted request.