# Chat with a CSV or Spreadsheet

> Ask questions about a CSV, TSV or JSON table in plain English. An on-device AI plans the query and exact counts and totals are computed by code. Nothing uploaded.

- URL: https://www.tooljig.com/chat-with-csv
- Category: [On-device AI](https://www.tooljig.com/category/ai.md)
- Runs: On-device AI in the browser (WebGPU or WebAssembly); nothing uploaded
- Price: free, no account needed

## What it does

Drop a CSV export and ask questions such as “which region had the highest revenue?” or “how many orders were cancelled in March?”. The model never guesses numbers: it reads the columns, then asks the built-in table engine for exact counts, sums, averages and matching rows, and every query is shown as a tool call. Works on hundreds of thousands of rows because the table never has to fit in the model's context. The model runs inside your browser tab. Its weights download once from Hugging Face and can stay on your device; your text and files are never uploaded.

## How to use it

1. Drop a CSV, TSV or JSON array (or try the sample).
2. Ask a question in plain English.
3. Open the tool cards to see each exact computation.

## Good to know

- Numbers with currency signs, thousands separators and percent signs are recognized.
- Grouped results are sorted largest first; up to 15 groups are shown per query.
- Small models can make mistakes. Check important answers against the source; tool results and page citations make that quick.

## FAQ

### Is my data sent to a server or to an AI company?

No. Inference runs locally with ONNX Runtime in your browser. The only network traffic is the one-time model download from Hugging Face; nothing you type or open is transmitted.

### Can a small model really analyse data?

It does not do the maths. It decides which aggregate to run (sum of Revenue grouped by Region, for example) and the code computes it exactly. That split is what makes small models dependable for data questions.

### How big is the download, and does it happen every time?

The first run downloads the model once (about 250–600 MB depending on the model; the exact size is shown before you start). It is kept in your browser's storage by default, so later visits load it in seconds and work offline. You can turn that off or delete stored models on the model manager page.

## Guides

- [How to run AI models in your browser, privately and offline](https://www.tooljig.com/blog/how-to-run-ai-models-in-your-browser.md): What on-device AI is, which small open models run in a browser tab, what your computer needs, and how to manage the models stored on your device.

## Related tools

- [CSV Viewer](https://www.tooljig.com/csv-viewer.md): Open CSV and TSV files as a readable table in your browser, with the delimiter detected automatically and a sticky header row. Nothing is uploaded.
- [CSV to JSON](https://www.tooljig.com/csv-to-json.md): Convert CSV tables into clean JSON arrays.
- [AI SQL Generator](https://www.tooljig.com/ai-sql-generator.md): Describe a query in plain English and get SQL for your schema in PostgreSQL, MySQL, SQLite, BigQuery or SQL Server, checked by a real SQL parser. On-device.
