Write, execute, and visualize SQL queries instantly in your browser — no installation required
SQL Boy's Playground is a free, browser-based SQL editor that lets you write, execute, and visualize SQL queries instantly—no installation, no signup, no database setup required. Powered by SQLite compiled to WebAssembly (WASM), the entire database engine runs locally in your browser, giving you lightning-fast query execution and complete privacy.
Whether you're learning SQL, testing a query before running it on a production database, or quickly analyzing a CSV file, the Playground provides a safe, instant environment to experiment. Your data never leaves your browser, and you can import your own datasets via CSV upload.
The interface is divided into three main areas: the Database Explorer sidebar on the left where you manage tables and import data, the SQL Editor in the top-right where you write your queries, and the Results Panel below where you view output, visualizations, and execution plans.
The results panel offers three distinct views to help you understand your queries from different perspectives:
The Results tab displays the output of your SQL query in a clean, sortable table format. After you click "Run Query", this is where you'll see the rows returned by your SELECT statement or the confirmation message for INSERT, UPDATE, or DELETE operations.
The table supports horizontal scrolling for wide result sets and displays column names exactly as they appear in your query's output. If your query has an error, the Results tab will show a clear error message explaining what went wrong.
The Visualization tab renders your SQL query as an Abstract Syntax Tree (AST)—a tree-like diagram showing how the SQL parser breaks down your statement into its component parts. This is incredibly useful for understanding SQL syntax structure and debugging complex queries.
For example, a simple SELECT name FROM users WHERE age > 18 will show nodes for the SELECT clause, the column reference, the FROM clause with table name, and the WHERE clause with its comparison expression.
This feature is particularly valuable for learners trying to understand query structure, developers debugging why a query isn't behaving as expected, or anyone curious about how databases parse SQL statements.
The Explain Plan tab shows SQLite's execution plan for your query—the strategy the database engine uses to retrieve or modify data. Understanding execution plans is essential for writing performant SQL queries, especially when working with large datasets.
The plan reveals whether your query uses indexes ("SEARCH"), performs full table scans ("SCAN"), how JOINs are processed, and the order of operations. This is the same type of output you'd get from running EXPLAIN QUERY PLAN directly.
For complex queries involving multiple tables or subqueries, the Explain Plan helps you identify bottlenecks and understand why a query might be slow—crucial knowledge for optimizing database performance.
The left sidebar contains the Database Explorer, your control center for managing tables in your session. At the top, you'll find the CSV Import feature—simply drag a file or click to upload, and the Playground automatically creates a SQL table from your data.
The importer intelligently detects column types (text, numbers, dates) and creates appropriate table schemas. Your table appears in the Tables list immediately after upload, ready to query. You can import multiple CSV files to create a database with multiple related tables.
Each table in the list shows its column structure. You can click the trash icon to delete a table if you no longer need it. The "Refresh" button re-scans the database to update the table list—useful after running CREATE TABLE statements manually.
SELECT, JOIN, GROUP BY, and other commands in a safe sandbox. Make mistakes freely—just refresh the page to reset everything.The Playground runs SQLite 3.x compiled to WebAssembly using the sql.js library. This means you get a full-featured SQL database engine in your browser—not a simplified subset. SQLite supports most standard SQL features including CTEs, window functions, subqueries, and complex joins.
The SQLite WASM module loads asynchronously when you first visit the page (you'll see the "Initializing..." indicator change to "Engine Ready" when it's loaded). Once initialized, all query execution happens locally with no network requests—making it blazing fast and completely private.
Your data stays on your device. The SQL engine runs entirely in your browser using WebAssembly—we don't have servers that process your queries or store your uploaded files. When you close the tab, your data disappears completely.
This architecture makes the Playground ideal for working with sensitive or proprietary datasets. Whether you're analyzing confidential business data, testing queries with PII, or simply prefer not to share your data with cloud services, the Playground's client-side design ensures your information never leaves your computer.