Free online tools to generate, calculate,
convert, format, encode, and play.
 

SQL Playground

Interactive SQL playground with SQLite running entirely in your browser. Query sample databases or create your own tables.

Loading...
Loading SQLite database... This may take a moment.
Press Ctrl+Enter to execute query

About SQL Playground

This SQL playground runs SQLite entirely in your browser using sql.js, a JavaScript port of SQLite compiled to WebAssembly. All queries execute locally - no server needed.

Sample Database

The playground includes sample tables:

  • employees - Employee records (id, name, department, salary, hire_date)
  • departments - Department info (id, name, budget)
  • projects - Project details (id, name, department_id, deadline)

Features

  • Full SQLite: Complete SQL support including transactions
  • Browser-Based: No server - runs entirely in your browser
  • Table Display: Results shown in formatted tables
  • Sample Data: Pre-populated database to practice queries
  • CREATE/INSERT: Create your own tables and data
  • Privacy: All data stays in your browser

Keyboard Shortcuts

  • Ctrl/Cmd + Enter: Execute query
  • Tab: Indent (2 spaces)

Supported SQL Features

  • SELECT, INSERT, UPDATE, DELETE
  • CREATE/DROP TABLE, INDEX
  • JOINs (INNER, LEFT, RIGHT, FULL)
  • Aggregate functions (COUNT, SUM, AVG, MIN, MAX)
  • GROUP BY, HAVING, ORDER BY
  • Subqueries and CTEs (WITH clause)
  • Transactions (BEGIN, COMMIT, ROLLBACK)

Feedback

Help us improve this page by providing feedback, and include your name/email if you want us to reach back. Thank you in advance.


Share with