cURL to n8n HTTP Request Converter

Paste a curl command from any API documentation and get an n8n HTTP Request node that is already configured. Copy the JSON, click the n8n canvas, press Ctrl+V, and the node appears with the method, URL, query, headers and body filled in.

Runs 100% in your browser. Your command and API keys are never uploaded. View Source JS on GitHub
cURL command (input)
n8n HTTP Request node JSON (output)
Breakdown
Paste a command or press Load Sample Data.

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

  1. 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.
  2. Paste it into the input box. Conversion happens instantly as you type, and you can also press Convert.
  3. Check the Breakdown table. It lists the method, URL, query parameters, headers, body and authentication so you can confirm nothing was misread.
  4. Press Copy node JSON.
  5. 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.
  6. 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:

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.

Frequently asked questions

Press Copy node JSON, open your workflow in n8n, click an empty spot on the canvas and press Ctrl+V (Cmd+V on a Mac). n8n recognises the JSON and creates a configured HTTP Request node. You can also save the JSON to a file and import it from the workflow menu.
No. The converter runs entirely in your browser with JavaScript. Nothing you paste is sent to our servers, and nothing is stored. You can check this in your browser's network tab while you use the tool.
The node uses HTTP Request node version 4.2, which is the format in current n8n 1.x releases. Older instances that only know earlier versions of the node may show a different layout; updating n8n solves that.
Yes. A -u user:password option or a user:password@ URL becomes a Basic Authorization header, and a Bearer header is kept as it is. For production workflows, tick the placeholder option and use an n8n credential, so the secret is not stored in the node.
The converter follows the Content-Type header. With application/json you get a JSON body; with application/x-www-form-urlencoded, or no header and key=value data, you get form fields. If there is no header and the data looks like JSON, it is treated as JSON and you are told. Add an explicit header to your command to control it.
The JSON output is made for n8n, but the breakdown table shows the method, URL, query, headers and body, so you can copy the values into Make.com's HTTP module or Zapier's Webhooks action by hand.

Related free tools