CSV Query Tool
Open a local CSV file and run a read-only DuckDB SQL query without uploading it.
- Free
- Works Offline
- No Uploads
How to Use CSV Query Tool
- Open the HTML, review Security Check, then select Continue.
- Choose a local CSV File or open the sample.
- Use the starting SELECT to reference your CSV table.
- Edit the SQL and select Run Query. Examine the result in the grid.
CSV Query Tool Features
- Use the starting SELECT to reference your CSV table.
- The first 250 rows returned by a read-only DuckDB SELECT.
- Run SQL filters and totals against local, quoted CSV records.
Formats and Compatibility
| Input | A UTF-8 comma-separated .csv file with a consistently shaped header and records. |
|---|---|
| Output | The first 250 rows returned by a read-only DuckDB SELECT. |
| Browser | A modern browser with local file support. |
| Scope | DuckDB detects the CSV header and column types. Use quoted fields for embedded commas and line breaks. |
| Operating Systems |
Local Processing Without Uploads
The tool includes its browser engine and opens your selected file locally. Download the standalone HTML to run it offline.
Select Open Sample CSV to see the workflow with the included example.
Supported CSV Files
UTF-8 CSV stores one record per row. Enclose values containing commas, quotes, or line breaks in double quotes.
Examine Query Results
The starting SELECT includes the local table name. Edit it with a WHERE, GROUP BY, or ORDER BY clause and select Run Query.
Frequently Asked Questions
Can I use CSV Query Tool offline?
Yes. Download the standalone HTML and use a browser with local worker and WebAssembly support.
What can I open?
A UTF-8 comma-separated .csv file with a consistently shaped header and records.
How are column types chosen?
DuckDB infers which columns contain numbers, dates, booleans, or text. Use CAST in a query to control the output type.
How many rows will the preview display?
The grid shows up to 250 rows. Add WHERE, ORDER BY, or LIMIT to set which records appear.
Does this tool work offline on Windows, macOS, Linux, and ChromeOS?
Yes. Local Studio tools run offline on Windows, macOS, Linux, and ChromeOS. Download the tool ZIP, extract it, and open the included HTML file in a supported browser. Your files are processed on your device without uploads.
Which browsers can I use with this offline tool?
Use a current version of Google Chrome, Microsoft Edge, Mozilla Firefox, or Safari where that browser is available for your operating system. Chrome is built into ChromeOS, and Safari is available on macOS.