SQL on CSV
Load CSV, TSV, or JSON files and query them with SQLite joins, aggregates, and window functions. Export results to CSV, JSON, or SQLite.
Settings
Header row · auto delimiter · detect numbers · 500 rows shown
How to Use SQL on CSV in 3 Steps
Load CSV or JSON tables
Drop CSV, TSV, or JSON files to create named SQLite tables, or paste raw data into the pasted table.
Write and run SQL
Write any SQLite query with JOIN, GROUP BY, CTEs, or window functions. Click Run query or press Ctrl/Cmd + Enter.
Export query results
Download the query result as CSV or JSON, or export all tables as one SQLite .db file.
SQL on CSV: Frequently Asked Questions
Which SQL dialect runs my queries?
Queries execute in SQLite compiled to WebAssembly (sql.js) inside your browser tab. Joins, CTEs, window functions, strftime, json_extract(), and LIMIT all work natively.
How does the loader assign column data types?
All-numeric CSV columns become INTEGER or REAL for accurate math and sorting, while mixed columns stay TEXT. Uncheck Detect numbers in Settings to preserve leading zeros.
Can I join multiple CSV or JSON files?
Yes. Load multiple files and join them by filename, such as SELECT * FROM orders o JOIN customers c ON c.id = o.customer_id. Wrap spaced column names in double quotes.
What is the maximum file size per table?
Each file supports up to 50 MB in browser memory. Settings cap the rendered preview rows, while CSV and JSON downloads always include the full query result.
Which JSON structures load as tables?
Arrays of objects map object keys to columns, and objects containing a data array unwrap automatically. Nested objects store as JSON text for json_extract() queries.
Is my data uploaded anywhere?
No. All parsing and conversion run locally in JavaScript inside your browser tab. Your text and files never leave your device.
Explore All Data Tools
Parse, convert, and clean structured data files in your browser.