Open and Query a CSV Too Big for Excel
Excel stops at 1,048,576 rows. Query large CSV files with SQL in your browser instead — filter, sample and summarise millions of rows without uploading.
Excel can't open more than 1,048,576 rows, and many text editors freeze on multi-gigabyte files. DuckDB is built for exactly this: it streams through big CSVs, so you can count, filter and summarise millions of rows on your own laptop and export just the part you need.
How it works
- Drop the large CSV into the SQL Playground — it is read from your disk, not uploaded.
- Start with a count or a small LIMIT to see the shape of the data.
- Filter or aggregate down to what you need and export that result.
Examples you can copy
How many rows?
SELECT COUNT(*) FROM orders;
Take a random sample
SELECT * FROM orders USING SAMPLE 10000 ROWS;
Export only the slice you need
SELECT *
FROM orders
WHERE region = 'North'
AND order_date BETWEEN DATE '2026-01-01' AND DATE '2026-03-31';
FAQ
How big a CSV can I query?
It depends on your device's memory and browser. Files of several gigabytes usually work for counting, filtering and aggregating. The on-screen preview shows up to 1,000 rows; exports rerun the full query.
Why not just split the file?
If you need the whole file in Excel, the CSV Splitter can cut it into Excel-sized parts. If you only need some rows or a summary, querying is faster.
Is the file uploaded?
No. It stays on your computer and is read by DuckDB inside the browser tab.
Can I save the result as Parquet to make it smaller?
Yes. Export as Parquet — it is usually much smaller than CSV and much faster to query next time.
Open the SQL Playground
Explore the local data workbench · Browse all tools