Query a CSV with SQL
Run SQL on a CSV file, in your browser
Write SELECT, GROUP BY and JOIN straight against a CSV file, with DuckDB running in the tab. No database to set up, no import step, no account: drop the file and query it.
or try an example: Airline passengers by month, 144 rows ›
how it works
- Drop a CSV on the box above, or paste its address. It opens with SELECT * FROM the file.
- Change the query: FROM 'data/sales.csv' works on the file by its name, with any SQL DuckDB speaks.
- Keep the query as a file, chart its result, and share a link to it.
questions
Which SQL does it speak?
DuckDB's: standard SQL with window functions, CTEs, PIVOT, regular expressions, list and struct types, and functions to read CSV, Parquet and JSON directly.
Can I join two files?
Yes. Drop both, and FROM 'data/a.csv' JOIN 'data/b.parquet' USING (id) works as it would on tables.
Do I need an account?
No. There is nothing to install and no sign-in. Your files and queries stay in your browser's storage.
see it done
more tools
Parquet viewerCSV viewerJSON and JSON Lines viewerGeoJSON viewerCSV to chart