n8n HTML nodeConfigure HTML in n8n.
The n8n HTML node works markup in both directions. It writes HTML from the data flowing through a workflow, and it reads values back out of a page. Three operations cover the whole job, there is no account to connect, and the node runs once per incoming item.
Verified Trustpilot reviews · AI, automation & growth agency
What does the n8n HTML node actually do?
The HTML node ships with n8n and handles both directions of markup inside a workflow. It builds an HTML document from the data you already have, and it pulls structured values back out of HTML that arrives either as text in a JSON field or as a binary .html file. One Operation dropdown, three choices, and the panel changes shape depending on the one you pick.
The node landed in n8n 0.213.0, where it replaced the older HTML Extract node. That history explains the shape of the panel: extraction came first, template rendering and table conversion were folded into the same node afterwards. The catalogue lists the node at version 1, so an old workflow can show a panel with fewer options, and a node never changes version by itself.
Scraping a public page into a row. A workflow fetches the page with HTTP Request, hands the response to Extract HTML Content, and names one key per CSS selector: a price, a title, a stock label. The output is a flat item you can write straight into Google Sheets, with no parsing code in between.
Turning a query result into a readable email. Generate HTML template takes the fields of each item and drops them into markup you control, expressions included. The rendered document goes to Gmail as the body of the message. When the layout does not need to be custom, Convert to HTML Table does the same job with zero markup: it prints the items as a table and lets you style it through attributes.
Reading an HTML attachment. An email arrives with an .html report attached, the binary field goes into Extract HTML Content with Source Data set to binary, and the selectors pick the two figures that matter. Downstream, Switch routes the item depending on what came back.
Where this node stops is easy to describe. It does not download anything, so a page always has to be fetched first. It does not execute JavaScript: script tags are copied into the rendered output as they are, which also means a page built entirely in the browser will not expose its content to a selector. And a template fed with untrusted values is a cross-site scripting risk, so check what goes into the markup before rendering it. If you want the wider picture on the tool itself, the n8n review covers it.
Which operation of the HTML node do you need?
The HTML node exposes 3 operations. For each one: the node as you configure it in n8n, the required fields, and our field notes.
Operations index
Generate HTML template
generateHtmlTemplateWhat you see in n8n
Notes & use cases
Write the markup once and the operation renders it for every item that reaches the node, so the output is a finished document rather than a bag of fields. Standard HTML, CSS inside a style tag and expressions wrapped in {{}} all belong in the same template.
Key parameters
- HTML Template: the markup to render. Values come from the previous node through an expression such as
{{ $json.total }}. Anything inside ascripttag is kept in the output but never executed by n8n.
Extract HTML Content
extractHtmlContentWhat you see in n8n
Notes & use cases
Give this operation a page and a list of selectors, and it returns one field per selector on the outgoing item.
Key parameters
- Input Binary Field: required, the name of the input binary field containing the file to be extracted.
- Source Data:
binaryfor a file,jsonfor HTML already held in a property. - Extraction Values: one entry per value, with a Key, a CSS Selector such as
.priceand a Return Value amongtext,html,attributeandvalue. Attribute names the one to read, Skip Selectors drops parts of the page, Return Array splits matches. - Trim Values and Clean Up Text: strip surrounding whitespace and newlines.
Convert to HTML Table
convertToHtmlTableWhat you see in n8n
Notes & use cases
Nothing to configure on this one: it expects data from another node and prints the incoming items as a table, one column per field. The whole customization lives in its options.
Key parameters
- Capitalize Headers: turned on, the header cells are capitalized.
- Custom Styling: turned on, your own styling applies instead of the default one.
- Caption: a caption added to the table.
- Table Attributes, Header Attributes, Row Attributes and Cell Attributes: attributes attached respectively to the table, its headers, its rows and its cells, such as a style attribute.
Need help automating HTML with n8n?
A person reads every message.
HTML node questions, answered
01Is the n8n HTML node free on Cloud and self-hosted?
02What credentials does the HTML node need?
03What are the limits of the HTML node in n8n?
04HTML node or Code node for parsing a page?
05n8n or Make for working with HTML?
Get our weekly integration tips.
No spam. Unsubscribe anytime.

