Online SQL editor (SQLite)
Practise SQL or query your own data without installing a database. This editor runs SQLite, compiled to WebAssembly, entirely in your browser tab. It starts with a small shop database (customers, products, orders) so you can try SELECT, JOIN, GROUP BY and window functions right away. Import a CSV file and it becomes a table with detected column types, open an existing .sqlite or .db file, run any SQL including CREATE, INSERT and UPDATE, then download results as CSV or the whole database as a file.
Tables
Starting SQLite…
SQLite runs in your browser (sql.js). Nothing is uploaded.
How to use the Online SQL Editor
- 1
Write a query
Start with the sample query or click a table to select its rows.
- 2
Run
Press Run or Ctrl+Enter; results appear as tables.
- 3
Bring your data
Import a CSV as a new table or open a .sqlite database.
- 4
Export
Download results as CSV or the database as a .sqlite file.
What runs where
The database engine is SQLite 3 (via sql.js) running in a Web Worker, so long queries don't freeze the page. Everything stays in this tab's memory and disappears when you close it unless you export.
CSV import detects the delimiter and column types: whole numbers become INTEGER, decimals REAL, and anything else, including values with leading zeros such as ZIP codes, stays TEXT.
When to use it
- Practise SQL for interviews, classes or certifications.
- Query a CSV export with JOINs and GROUP BY instead of spreadsheets.
- Inspect an app's SQLite database file.
Limits
- SQLite syntax: some MySQL or PostgreSQL features (such as stored procedures) aren't available.
- Results show up to 5,000 rows per query; use LIMIT or export for larger sets.
- Large databases are limited by your device's memory.
Privacy
Runs entirely in your browser with SQLite in WebAssembly. Your data and files are never uploaded.
Frequently asked questions
Can I run SQL online for free?
Yes. This editor runs a full SQLite database in your browser, with no account or installation.
Which SQL dialect is this?
SQLite 3. Standard SELECT, JOIN, GROUP BY, subqueries, CTEs (WITH) and window functions all work.
How do I import a CSV file?
Press Import CSV and choose the file. Its first row becomes the column names and the file name the table name.
Is my data uploaded?
No. The database lives in your browser tab's memory only.
Can I save my database?
Press Download database to save a .sqlite file, and open it again later with Open database.
Can I connect to MySQL or PostgreSQL?
No. The editor only works with its own in-browser SQLite database; it can't connect to remote servers.
Related tools
People also use
- JWT Generator & SignerCreate and sign JSON Web Tokens with HMAC, RSA or ECDSA keys, entirely in your browser.
- Base64 Encoder & DecoderEncode and decode Base64 and Base64url, text or files.
- URL Encoder & DecoderPercent-encode or decode URLs and see their query parameters.
- UUID GeneratorBulk UUID v4 and v7 generator with a UUID inspector.
Last updated November 30, 2026 · How we build and test our tools