SQL Playground & Query Runner
Write schema and seed SQL, then run queries against an in-memory database.
About the SQL Playground & Query Runner
An in-browser SQL sandbox: edit a schema/seed SQL block to build a fresh in-memory SQLite database, then write and run queries against it. Comes with a small demo schema and sample JOIN, GROUP BY, and subquery buttons to get started, plus CSV/JSON export of results. Powered by sql.js (SQLite compiled to WebAssembly) — everything runs locally.
Popular uses
- sql playground
- sql sandbox
- sql.js
- query runner
- sqlite online
- learn sql
Examples
Join query
SQLSELECT c.name, o.product FROM customers c JOIN orders o ON o.customer_id = c.id;Output
SQLAda Lovelace | LaptopKeyboard shortcuts
- Copy the main outputCtrl / ⌘ + Shift + C
- Download the resultCtrl / ⌘ + S
- Share this toolCtrl / ⌘ + Shift + S
- Reset the inputsAlt + R
- Open the tool search paletteCtrl / ⌘ + K
Related tools
SQLite Database Viewer & Query Runner
Dev Utilities
Open a .sqlite/.db file in your browser and run SQL against it.
SQL Formatter
Dev Utilities
Format and indent SQL queries for readability.
SQL Query Analyzer
Dev Utilities
Find expensive SQL patterns, missing filters and index opportunities.
Csv To Json
Converters
Convert between CSV and JSON with delimiter and header options.
Csv To Markdown Table
Converters
Convert CSV into a Markdown or HTML table with alignment options.
CSV to SQL INSERT
Converters
Generate SQL INSERT statements from CSV data.
Works well with
Next steps from other categories.
CSV Viewer & Editor
Converters
Open, edit, clean and export CSV files like a lightweight spreadsheet — rows, columns, stats and undo.
Excel Column Name Converter
Converters
Convert between spreadsheet column numbers and letters.
JSON to CSV
JSON
Flatten a JSON array of objects into a CSV spreadsheet.
JSON to SQL INSERT
Converters
Generate SQL INSERT statements from a JSON array of objects.
Frequently asked questions
Read more
- From SQL DDL to TypeScript, Zod, Prisma and Drizzle — plus clean CSV data, all offline
Turn CREATE TABLE statements into type-safe schemas and an ER diagram, then inspect, clean and export CSV files without uploading your data anywhere.
- Debugging slow SQL queries: an index primer
Reading EXPLAIN output, understanding why an index gets ignored, and the indexing patterns that fix most slow queries.
- A SQL playground that runs in your tab: CSV import, schema explorer and exportable results
Practise SQL, prototype a query or analyse a CSV without installing a database. How SQLite-in-WebAssembly makes a private, zero-setup playground possible.
Version 1.0.0 · Updated 2026-08-11 · Runs entirely in your browser