Run SQL on CSV

Query your CSV files with SQL

Loading SQL Module...

Run SQL Queries on CSV Files Online

Upload one or more CSV files and query them with standard SQL syntax directly in your browser. Powered by SQLite (via sql.js), this tool lets you filter, join, aggregate, and transform CSV data without installing any software or uploading files to a server.

Key Features

How to Use

  1. Upload CSV files – Click the upload area and select one or more .csv files from your computer.
  2. Review your schema – After upload, you will see table names and column names displayed above the editor.
  3. Write a SQL query – Use the editor to write your query. Autocomplete helps with table and column names.
  4. Run the query – Click “Run Query” or press Ctrl+Enter (Cmd+Enter on Mac).
  5. Download results – Click “Download CSV” to save the query results.

Common Use Cases

Privacy & Security

All processing happens entirely in your browser. Your CSV files are never sent to a server. The SQLite database runs in-memory using WebAssembly, and all data is discarded when you close or refresh the page.

Frequently Asked Questions

What SQL dialect is supported?

This tool uses SQLite syntax. Most standard SQL queries work, including JOINs, subqueries, aggregate functions, and string operations.

Is there a file size limit?

There is no hard limit, but performance depends on your browser and device memory. Files with tens of thousands of rows work well.

Can I query multiple files together?

Yes. Each uploaded CSV becomes a separate table. You can JOIN them or use subqueries across tables.

How are table names determined?

Table names come from the CSV file names (without the .csv extension). Special characters are replaced with underscores.

Is my data sent to a server?

No. Everything runs locally in your browser using WebAssembly. Your data never leaves your device.

Related Tools

You might also find these tools useful: