Skip to content
§
§ · free tool

SQL playground. A real database in your browser.

Write and run real SQL against a full SQLite engine, entirely on your device. A sample dataset is ready the moment you arrive, or import your own CSV as a table. Nothing is ever uploaded.

A free online tool by Digital Heroes

Heads up: the first time you run a query, your browser downloads a one-time SQLite engine (~1 MB). After that it runs fully on your device, even offline — your data and queries are never sent to a server.

Ctrl/⌘ + Enter to run
Examples

A real database that never leaves your laptop

This is a full SQLite engine (sql.js, compiled to WebAssembly) running inside the page — the same SQL you'd write against a production database. Prototype a query, learn JOINs and aggregates, or load a CSV export and slice it with SQL. Everything stays in memory on your device: no account, no upload, no row limits, and it keeps working offline once the engine is cached.

§ 02 · what you can do

Everything a query tool should do.

Run real SQLA full SQLite engine — SELECT, JOIN, GROUP BY, CREATE, INSERT, UPDATE, DELETE — running entirely in your browser.
Sample databaseCustomers, orders and employees tables are ready to query the moment the engine loads.
Import a CSV or TSVDrop in your own file as a new table with automatic type inference, then query it instantly with SQL.
Export resultsCopy any result set to your clipboard or download it as a CSV file in one click.
Multi-statement scriptsSeparate statements with semicolons — each result set renders in its own table below.
Private & offlineAfter the one-time engine download, everything works offline with no account and no row limits.
§ 03 · how to use it

Four steps, no setup.

  1. Type or paste a SQL query into the editor — or click an example chip to load a ready-made one.
  2. Press Run query (or Ctrl/⌘ + Enter). The first run downloads the SQLite engine once, then it's instant.
  3. Browse the result table below and use Copy CSV or Download CSV to save your results.
  4. To add your own data, click + CSV in the Tables sidebar; hit Reset DB any time to restore the sample data.
§ 04 · faq

Frequently asked questions.

Is the SQL Playground free?
Yes — completely free for everyone. No sign-up, no account and no usage limits.
Is it private? Is my data uploaded anywhere?
No upload, ever. The SQLite engine runs entirely in your browser on your own device — your queries, your imported CSVs and their data never leave your computer and nothing is sent to a server.
Does it work offline?
Yes — after the one-time SQLite engine download (about 1 MB), the tool keeps working offline. The engine can't download on your very first visit if you're already offline, so run one query while connected and it's cached from then on.
Which SQL dialect does it support?
Full SQLite — the same engine that ships in phones, browsers and countless apps. That means SELECT with JOINs, aggregates, window functions, CTEs, subqueries, plus DDL and DML (CREATE / INSERT / UPDATE / DELETE / ALTER). It's a superb sandbox for learning and prototyping, though vendor-specific syntax from Postgres, MySQL or SQL Server won't run here.
Will my imported tables persist after I close the tab?
No — the database lives in memory only, so closing or reloading the tab resets it to the original sample data. That's by design for a scratch playground. To keep your results, use Download CSV on any query, and keep your source CSV files to re-import next time.
How big a CSV can I import?
Up to 25 MB per file. The importer auto-detects the delimiter (comma, tab, semicolon or pipe), infers each column's type (INTEGER, REAL or TEXT), and bulk-inserts inside a transaction. Result tables render the first 2,000 rows for speed, but Copy CSV and Download CSV always include every row.

Published · Last updated .

Online now

Hi there. How can we help you today?

Reply