SQL to CSV converter
Convert SQL to CSV as you type. Nothing is uploaded, and the result can be previewed as a table, copied or downloaded.
Convert SQL to CSV as you type. Nothing is uploaded, and the result can be previewed as a table, copied or downloaded.
Loading the converter… It runs locally in your browser.
Paste a SQL dump or a list of INSERT INTO … VALUES statements. Column names come from the INSERT column list or the CREATE TABLE statement, NULL becomes an empty cell, and escaped quotes are decoded.
CREATE TABLE plus batched INSERT statements for PostgreSQL, MySQL, SQLite or SQL Server, with column types inferred from the data.
Comma-separated values: one record per line, fields split by a delimiter, and fields that contain the delimiter, quotes or line breaks wrapped in double quotes (RFC 4180).
A CSV field only needs double quotes when it contains the delimiter, a double quote or a line break. A quote inside a field is written twice ("Katherine ""Kay"" Johnson"). Our interactive CSV format guide lets you type a value and watch exactly which rule applies.
No. The SQL to CSV conversion runs entirely in your browser with JavaScript. The page works offline once it has loaded, and TableForge never receives your data.
The limit is your device's memory. Files of tens of megabytes (hundreds of thousands of rows) convert fine on a typical laptop. The preview shows the first 200 rows, but the download always contains every row.
Yes. Fields containing commas, quotes or line breaks are quoted and escaped according to each format's rules, and text is read and written as UTF-8, so accents, CJK characters and emoji survive.
Yes, use the CSV to SQL converter at tableforge.io/csv-to-sql, or the universal converter on the home page.