Embed this tool on your site
<iframe src="https://devtoolbox.dedyn.io/tools/sql-playground" width="100%" height="700" frameborder="0" title="SQL Playground"></iframe>

SQL Playground

Run SQL queries directly in your browser using SQLite compiled to WebAssembly. Comes with a pre-loaded sample database (employees & departments). Supports CREATE, INSERT, SELECT, JOINs, aggregates, multi-statement queries, and more. Your data never leaves your browser.

Loading SQLite engine...

Online SQL Query Editor & Sandbox

This SQL Playground runs a full SQLite database engine in your browser using WebAssembly. There is no server, no signup, and no data leaves your machine. Write SQL queries, create tables, insert data, and see results instantly. The pre-loaded sample database includes employees and departments tables so you can start practicing SQL immediately.

Features

How It Works

When you load this page, the SQLite database engine (compiled to WebAssembly via sql.js) is downloaded and initialized in your browser. A sample database with employees and departments is created in memory. When you click Run Query, your SQL is parsed and executed entirely within the browser's WebAssembly sandbox. Results are rendered as interactive tables. The database persists in memory as long as the page is open — you can create tables, modify data, and run complex queries across multiple executions.

Use Cases

Frequently Asked Questions

Is the SQL Playground safe to use? Does my data leave the browser?
Yes, it is completely safe. The SQL Playground runs SQLite compiled to WebAssembly entirely in your browser. Your queries and data never leave your machine and are never sent to any server. The database exists only in memory and is discarded when you close or refresh the page.
What SQL features are supported in the SQL Playground?
The playground supports the full SQLite SQL dialect, including CREATE TABLE, INSERT, SELECT, UPDATE, DELETE, JOINs (INNER, LEFT, CROSS), subqueries, aggregate functions (COUNT, SUM, AVG, MIN, MAX), GROUP BY, HAVING, ORDER BY, LIMIT, UNION, CASE expressions, CTEs (WITH), window functions, and more. You can run multiple statements separated by semicolons.
Can I import my own data or export query results?
You can create your own tables and insert data using standard SQL CREATE TABLE and INSERT statements. Query results can be exported as CSV files with one click using the Export CSV button. The playground also comes with a pre-loaded sample database containing employees and departments tables so you can start querying immediately.
Keyboard Shortcuts
Ctrl+Enter Run query
Ctrl+Shift+C Copy results
Ctrl+L Clear results