Turn any curl example into an n8n node in seconds
Almost every API on the internet documents itself with a curl command. It is the universal way to show a request: one line that contains the method, the address, the headers and the body. n8n, on the other hand, wants those same pieces entered into the fields of the HTTP Request node, one by one. Doing that by hand is slow and easy to get wrong. A missing header, a body sent as the wrong content type, or a query parameter pasted into the URL instead of the parameter list can cost you half an hour of debugging.
This converter removes that translation step. It reads the curl command with a real shell-style parser, understands the options that matter, and produces an n8n HTTP Request node as JSON in the exact format n8n uses when you copy and paste nodes. Copy the result, click an empty spot on the n8n canvas, press Ctrl+V (or Cmd+V on a Mac), and a fully configured node appears. You then only need to connect it to your workflow and run it.
How to use the converter
- Copy the curl example from the API documentation, or use Copy as cURL from your browser's developer tools (Network tab, right click a request). Choose the bash version if you are offered a choice.
- Paste it into the input box. Conversion happens instantly as you type, and you can also press Convert.
- Check the Breakdown table. It lists the method, URL, query parameters, headers, body and authentication so you can confirm nothing was misread.
- Press Copy node JSON.
- Open your n8n workflow, click an empty area of the canvas, and press
Ctrl+V. The HTTP Request node is created with everything filled in. - Press Execute step to test it. If the API needs a key, consider moving it into an n8n credential as described below.
If you would like to see it work first, press Load Sample Data or choose one of the three presets: a Stripe charge request, an OpenAI chat completion and a webhook POST.
Which curl options are supported
The parser handles the options used in the vast majority of API examples:
- Method:
-X/--request, plus-Ifor HEAD. When you give a body and no method, the converter uses POST, exactly as curl does. - Headers:
-H/--header, as well as the shortcuts-A(user agent),-e(referer) and-b(cookie string). - Body:
-d,--data,--data-raw,--data-binary,--data-urlencodeand--json. JSON bodies, form-urlencoded bodies and other content types such as XML or plain text are recognised. - Forms:
-F/--formbecomes a multipart form-data body. - Authentication:
-u user:password, credentials inside the URL,--oauth2-bearerand anyAuthorization: BearerorBasicheader. - Query strings: parameters in the URL are moved into n8n's query parameter list, and
-Gturns data into query parameters. - Options:
-k(ignore SSL problems),-m(timeout) and-x(proxy). Flags with no effect on the request, such as-s,-S,-vand--compressed, are accepted and ignored. - Shell syntax: single and double quotes, backslash line continuations and the
$'...'style that Chrome uses when you copy as cURL.
How each part maps to the n8n node
The n8n HTTP Request node has one field for each piece of a request. The converter fills them like this: the method and URL go into Method and URL. Query parameters switch on Send Query Parameters and are listed as name and value pairs. Headers switch on Send Headers. For the body, JSON content sets Body Content Type to JSON and puts the text into the JSON field; form data uses Form Urlencoded with one row per field; multipart uses Form-Data; and anything else is sent as Raw with the original content type. The Content-Type header itself is removed from the header list because n8n sets it for you from the body type, which avoids duplicate headers.
Keep secrets out of your workflows
Curl examples usually contain a real API key, because that is the quickest way to test. If you paste that key into a node parameter, it is saved inside the workflow in plain text, and it travels with every export, copy and screenshot. For anything beyond a quick test, create an n8n credential (Header Auth, Bearer Auth, Basic Auth or the service's own credential type) and select it in the node instead.
Tick Replace secrets with placeholders and the converter swaps tokens, passwords, API key headers and secret-looking JSON fields for values like Bearer YOUR_TOKEN. You then attach a proper credential in n8n. When the command contains secrets and the option is off, a notice reminds you. To share a finished workflow safely afterwards, run it through our n8n workflow sanitizer.
Common problems and how to avoid them
Body sent as form data instead of JSON
When you write curl -d '{"a":1}' without a Content-Type header, curl actually sends the body as application/x-www-form-urlencoded, and many APIs reject it. The converter detects JSON-looking text, treats it as a JSON body so it works in n8n, and tells you that it made that choice. Add a Content-Type header to your original command to make your intent explicit.
Shell variables such as $API_KEY
Commands often contain variables like $TOKEN that your shell would replace. A browser tool cannot know their value, so they are kept as typed and listed in a warning. Replace them with real values or with n8n expressions such as {{ $json.token }}.
Files and stdin
Options like -d @data.json and -F file=@photo.png read files from your computer. The browser cannot read those paths, so they are skipped with a warning. Paste the file content into the command instead, or use n8n's Read Binary File node and send it as binary data.
Windows command prompt
Commands copied from Windows cmd use caret escapes that differ from bash. Use the bash version of Copy as cURL whenever possible.
Why a client-side converter matters
The command you paste often includes credentials. This tool is a static page: the parsing happens in JavaScript inside your own browser tab, and nothing is sent to our servers or to any third party. You can confirm that in your browser's network tab, and the page keeps working offline once it has loaded. Read our privacy policy for details.
Next steps with n8n
Once your first HTTP Request node works, you can build the rest of the workflow around it: trigger it on a schedule (our cron visualizer shows what a schedule will do), clean the data it returns, and send results to your CRM or inbox. If you want a head start, our automation templates are complete n8n and Make.com workflows that use exactly these kinds of API calls. Running n8n yourself keeps the cost flat as volume grows; the cost calculator compares it with Zapier and Make.com.