How to use SQL Inserts to CSV
Read a local SQL script into a browser-side SQLite database and export one table or view to CSV. Useful for inspecting a dump without connecting to a server.
- Paste a compatible script or open the file.
- Enter Table name for the result you want and convert.
- Check the generated header and record order.
- Select Convert and review the result.
Example input
CREATE TABLE items (name TEXT, quantity INTEGER);
INSERT INTO items VALUES ('Notebook', 2), ('Pencil', 3);Example use
Extract the items table from a small SQLite dump for review in a spreadsheet.
Output and compatibility
Scripts that depend on MySQL or PostgreSQL extensions may fail in SQLite. Only the selected table or view is exported, without schema, triggers or indexes. CSV also lacks a database type system.
Troubleshooting
If you get a syntax error, identify any commands specific to the originating server. Use a small representative table to check what is supported before converting a large dump.
Use SQL to JSON for a record-array output.
Frequently asked questions
Does it connect to my database server?
The script is processed in a temporary local SQLite instance.
Can I start with a .sqlite database file?
Use SQLite to CSV for a database file rather than SQL text.