Tools Home

SQL to CSV & TSV Converter (INSERT & Query Dump Parser)

Extract structured data from SQL INSERT statements, database dumps, and query results directly into CSV, TSV, or Markdown tables with custom delimiters and null handling.

Field Delimiter:
NULL Representation:
Samples:
SQL INSERT / Dump Statement6 lines
Converted Data Preview (CSV)
Live Data Grid (5 rows × 7 columns)
idnameemailrolebalanceis_activecreated_at
1Sarah Connor[email protected]admin4500.5012024-01-15 08:30:00
2John Doe[email protected]user120.0012024-02-10 14:22:15
3Grace Hopper[email protected]moderator9800.7512024-03-01 11:05:40
4Miles Dyson[email protected]developer3100.0002024-03-12 16:45:00
5Anonymous UserNULLguest0.0012024-03-20 09:12:33
Extracted Rows5
Columns7
Output Size397 B
Parsing Health100% OK

100% Client-Side Privacy

Your confidential database dumps, user emails, and internal table records never touch an external server or API.

Multi-Format Tabular Export

Seamlessly export to RFC 4180 compliant CSV, TSV for spreadsheets, Markdown tables for pull requests, or structured JSON arrays.

High Precision SQL Tokenizer

Robustly extracts multiple values batches, unescapes SQL single quotes, preserves null identifiers, and parses complex multi-statement dumps.

Technical Reference & Architecture Guide

SQL to CSV & TSV Converter Developer Guide — Reference Guide

Comprehensive reference for parsing SQL INSERT INTO statements, database dumps, and multi-row batches into RFC 4180 compliant CSV, TSV, and Markdown tables.

Key Parameters & Controls

delimiterstring (',' | ';' | '\t' | '|')

Character used to separate columns in the resulting tabular export.

quoteCharstring ('"' | "'")

Quote delimiter used to encapsulate fields with special characters, commas, or newlines.

headerRowboolean

Whether to extract column names from INSERT INTO table (col1, col2) into the first row.

nullRepresentationstring ('NULL' | '' | '\N')

Representation format used for unpopulated or NULL database field entries.

Pro Tips & Best Practices

Ensure SQL string literal single quotes (e.g., 'O''Reilly') are correctly unescaped into standard quotes inside CSV fields.

Use TSV (tab-separated) format when processing database columns containing free-form prose, commas, or embedded HTML snippets.

Always inspect date formats; SQL standard 'YYYY-MM-DD HH:MM:SS' strings translate cleanly into spreadsheet software without locale skew.

Common Gotchas & Troubleshooting

Ensure your SQL statement separates value tuples with commas and concludes with a valid semicolon delimiter.

Ensure your spreadsheet program opens the exported file with UTF-8 encoding or select TSV export format.

Frequently Asked Questions

Can this tool parse large mysqldump or pg_dump files?▼

Yes. It parses standard SQL INSERT batches directly in-browser without sending sensitive database dumps across the network.

What happens if column names are not specified in the INSERT clause?▼

When INSERT statements omit column headers, sequential placeholder headers (col_1, col_2, ...) are automatically generated.

How are escaped characters and nested quotes handled?▼

Standard SQL escapes like '' and \' are decoded and then properly encoded per RFC 4180 rules using double quotes.

Can I export to Markdown format for GitHub pull requests?▼

Yes. Simply switch the export format selector to Markdown Table to get a copyable markdown grid.

Related Tools & Utilities

All Tools →