SQLite Playground

Run SQLite queries directly in your browser. Create tables, insert data, and query results with a full in-browser SQLite database powered by WebAssembly. 100% client-side, nothing sent to any server.

Loading SQLite engine...

SQLite Quick Reference

OperationSyntaxExample
Create TableCREATE TABLE name (cols)CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT)
InsertINSERT INTO t VALUES (...)INSERT INTO users VALUES (1, 'Alice')
SelectSELECT cols FROM t WHERE ...SELECT name FROM users WHERE age > 25
JoinSELECT ... FROM a JOIN b ON ...SELECT * FROM orders JOIN users ON orders.user_id = users.id
AggregateSELECT agg(col) GROUP BY colSELECT dept, COUNT(*) FROM emp GROUP BY dept
CTEWITH name AS (...) SELECT ...WITH active AS (SELECT * FROM users WHERE active=1) SELECT * FROM active
Windowfunc() OVER (PARTITION BY ...)SELECT name, ROW_NUMBER() OVER (ORDER BY age) FROM users
JSONjson_extract(col, path)SELECT json_extract(data, '$.name') FROM docs
Embed this tool on your site
<iframe src="https://devtoolbox.dedyn.io/tools/sqlite-playground" width="100%" height="700" frameborder="0" title="SQLite Playground"></iframe>

Frequently Asked Questions

Does this SQLite playground send my data to a server?
No. The entire SQLite database runs in your browser using WebAssembly (sql.js). Your queries and data never leave your machine. Everything is processed locally, making it completely private and secure.
What SQL features are supported in this browser-based SQLite?
This playground supports the full SQLite SQL dialect including CREATE TABLE, INSERT, SELECT, UPDATE, DELETE, JOINs, subqueries, CTEs (WITH clauses), window functions, JSON functions, aggregate functions, and more. It runs SQLite 3.x compiled to WebAssembly.
Can I run multiple SQL statements at once?
Yes. You can write multiple SQL statements separated by semicolons and they will all be executed in sequence. The results table will show the output of the last SELECT statement. Non-SELECT statements like CREATE TABLE and INSERT will show a success message with the number of rows affected.
Is my database saved between sessions?
No. The database exists only in memory for the current browser session. If you refresh the page or close the tab, the database is reset. This is by design for a quick experimentation tool. Use the template dropdown to quickly recreate sample data.
Keyboard Shortcuts
Ctrl+Enter Run query
Ctrl+Shift+C Copy results
Ctrl+L Clear database