How-to · Table Formatter

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.

Open Table Formatter Add to VS Code
Free · runs in your browser · your files are never uploaded

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:

Step-by-Step Delimited Text Split

  1. Paste your raw text blob directly into cell A1 in Table Mode.
  2. Press Alt+Shift+T to open the Delimiter Configuration dialog.
  3. Select or enter row delimiter (\n) and column delimiter (|, \t, ,).
  4. Press Alt+Shift+X to 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.