Free · No signup · Runs in your browser

Practice SQL on a real database, right in your browser

SQLPlayground runs a genuine SQLite engine via WebAssembly. Query realistic data, solve challenges from easy to hard, and design your own tables — everything executes locally, instantly.

Everything you need to get good at SQL

A real SQL engine, not a simulator

SQLPlayground runs SQLite compiled to WebAssembly. Every query you type is parsed and executed by the same engine that powers billions of devices — errors, edge cases and all.

Create your own tables

Design tables visually — columns, types (INTEGER, TEXT, DATE, BOOLEAN, DECIMAL and more), primary keys and constraints — with a live CREATE TABLE preview. Your tables are saved in your browser and survive reloads.

Practice whatever you want

SELECT, INSERT, UPDATE, DELETE, JOINs, GROUP BY, HAVING, subqueries, CTEs, window functions, views, indexes — if SQLite supports it, you can practice it here.

10 hands-on challenges

Work through real problems on realistic data, from warm-up SELECTs to correlated subqueries and window functions. Every challenge has a hidden solution you can reveal when you're stuck.

Realistic sample database

Five related tables from the events industry — events, venues, organizers, attendees and ticket registrations — seeded with data designed to make JOINs and aggregations meaningful.

A safe place to break things

DROP a table, DELETE everything, experiment freely. One click restores the original data. Nothing leaves your browser — there's no server and no account.

How it works

  1. 1

    Open the editor

    A SQLite database boots in your browser in about a second, pre-loaded with five related tables of realistic event data.

  2. 2

    Write SQL — or pick a challenge

    Free-play in the editor with sample queries to learn from, or work through ten challenges of increasing difficulty.

  3. 3

    See results instantly

    Every query runs locally in milliseconds. Modify data, create tables, break things — one click resets the sandbox.

Who it's for

Learning SQL from scratch

Start with simple SELECTs on friendly data and level up to JOINs and aggregations at your own pace.

Preparing for interviews

Drill GROUP BY, HAVING, subqueries and window functions — the exact topics data and backend interviews test.

Testing query ideas

Sketch a query against sample tables before running it on production data at work.

Teaching a class

Every student gets a full database in their browser tab — no accounts, no lab setup, nothing to install.

Frequently asked questions

Is this a real database?

Yes. SQLPlayground runs sql.js — the actual SQLite engine compiled to WebAssembly — inside your browser. Queries are genuinely executed, not pattern-matched or simulated.

Do I need to sign up or install anything?

No. Open the editor and start writing SQL immediately. There is no account, no download and no configuration.

Can I create my own tables?

Yes. Use the visual table builder (or write CREATE TABLE yourself) with types like INTEGER, TEXT, DATE, BOOLEAN and DECIMAL. Tables you create are stored in your browser and restored on your next visit.

What SQL features are supported?

Everything SQLite supports: SELECT, INSERT, UPDATE, DELETE, JOINs, GROUP BY and HAVING, subqueries, common table expressions (WITH), window functions, views, indexes and more.

Is my data saved?

The sample database resets on every reload so you can experiment safely. Tables you create yourself are the exception — they're saved in your browser's local storage until you delete them.

Does it cost anything?

No. SQLPlayground is completely free and runs entirely in your browser.

Your database is one click away

No signup. No install. Just SQL.

Open the editor
SQLPlayground — SQLite compiled to WebAssembly, running entirely in your browser.