Actions22
- Tool Actions
- Other Tool Actions
- Date Operation Actions
- Text & Formatting Actions
Tool → Create HTML From Table
AI-generatedOverview
The "Create HTML From Table" operation in the Ido Toolbox node converts structured tabular data into an HTML table representation. It supports input data in either JSON or CSV format and generates a simple HTML table string with optional headers included.
This operation is useful when you want to:
- Quickly visualize JSON or CSV data as an HTML table for embedding in emails, reports, or web pages.
- Convert raw data formats into a presentable HTML snippet without manual coding.
- Automate generation of HTML tables from API responses or spreadsheet exports.
Example use case:
You have a JSON array of user records and want to send an email containing a formatted table of these users. This node can convert the JSON directly into an HTML table string that you can embed in your email body.
Properties
| Name | Meaning |
|---|---|
| Input Data | The raw input data representing the table content. Can be JSON or CSV format. |
| Data Format | The format of the input data. Options: JSON or CSV. |
| Include Headers | Boolean flag indicating whether to include column headers in the generated HTML table. |
Output
The node outputs a JSON object with the following fields:
htmlTable: A string containing the complete HTML markup of the generated table.rowCount: Number of data rows processed (excluding header).columnCount: Number of columns detected.headers: An array of column header names extracted from the data (if headers are included).
The HTML table uses basic styling with border and padding for readability. If headers are included, they appear as <th> elements in the first row; otherwise, only data rows (<td>) are rendered.
No binary data output is produced by this operation.
Dependencies
- No external services or API keys are required.
- The node relies on standard JavaScript JSON parsing and string manipulation.
- No special environment variables or n8n credentials are needed.
Troubleshooting
Invalid JSON format error:
Occurs if the input data is selected as JSON but contains malformed JSON text.
Resolution: Validate and correct the JSON syntax before input.Empty or malformed CSV input:
If CSV input does not contain at least one line with comma-separated values, the output may be empty or incorrect.
Resolution: Ensure CSV input has a valid header row and data rows separated by newlines.Headers missing or incorrect:
IfInclude Headersis enabled but the input data lacks clear keys or header row, the table headers may be empty or unexpected.
Resolution: Verify that the first row (CSV) or object keys (JSON) represent the intended headers.Large input data performance:
Very large JSON arrays or CSV files might slow down processing or cause memory issues.
Resolution: Consider splitting data into smaller chunks before conversion.