Convert Raw Delimited Text to HTML Table and SQL INSERTs
How to parse raw pipe, tab, or comma-delimited text strings into visual HTML grids and export formatted SQL INSERT scripts.
TLDR
Parsing raw text blobs from log files, emails, or terminal output into database tables manually involves tedious string splitting and hand-writing SQL INSERT INTO queries. GINEXYS Table Formatter (TAFNE) Table Mode provides a delimiter text parser (Alt+Shift+T, Alt+Shift+X) that splits raw strings into a clean table grid and exports formatted SQL INSERT statements with automatic quote escaping.
The Search Query: Raw Delimited Text to SQL Converter
Database administrators search for:
- "convert raw delimited text string into html table and sql insert script"
- "pipe delimited text dump to sql insert converter online"
- "split tab separated text into table grid javascript"
Step-by-Step Delimited Text Split
- Paste your raw text blob directly into cell A1 in Table Mode.
- Press
Alt+Shift+Tto open the Delimiter Configuration dialog. - Select or enter row delimiter (
\n) and column delimiter (|,\t,,). - Press
Alt+Shift+Xto run the split operation.
// Delimiter text parsing logic in parseInputs.js
function parseDelimitedText(rawText, rowDelimiter, colDelimiter) {
const rows = rawText.split(rowDelimiter);
return rows.map(r => r.split(colDelimiter).map(cell => cell.trim()));
}
Rule of thumb: set row 1 as column headers before exporting so generated SQL INSERT statements use clean column identifiers.
Exporting Executable SQL INSERT Queries
Click Export -> SQL to generate formatted database seed queries:
-- Generated SQL INSERT script from Table Formatter
INSERT INTO inventory (item_id, item_name, quantity, status) VALUES
('SKU-101', 'Microcontroller Unit', 250, 'In Stock'),
('SKU-102', 'Resistor 10k 0805', 5000, 'In Stock'),
('SKU-103', 'Capacitor 100nF', 0, 'Backordered');
Conclusion
Combining keyboard-shortcut text splitting with direct SQL export makes seeding database tables from raw text dumps effortless.
Table Formatter — Clean, reshape, and convert tabular data between HTML, CSV, TSV, SQL, and Markdown.