SQL Playground
Import CSV data and run SQL queries entirely in your browser. Powered by SQLite WASM (sql.js) — no server, no sign-up, no data uploaded anywhere. Supports SELECT, JOIN, GROUP BY, CTEs, window functions, and more. Export query results as CSV.
Frequently Asked Questions
What SQL dialect does this tool support?▼
This tool runs SQLite (via sql.js compiled to WebAssembly). SQLite supports most standard SQL: SELECT, WHERE, GROUP BY, HAVING, ORDER BY, LIMIT, JOIN, subqueries, window functions, CTEs (WITH), and aggregate functions. It does not support stored procedures, user-defined functions, or MySQL/PostgreSQL-specific syntax.
Does my data get sent to a server?▼
No. Everything runs in your browser using SQLite compiled to WebAssembly (sql.js). Your CSV data and SQL queries never leave your machine. The WASM binary is loaded from a public CDN (cdnjs.cloudflare.com), but your actual data stays local.
How do I import data?▼
Paste CSV data (comma-separated, first row as headers) into the CSV input area, then click 'Import CSV'. The tool creates a table named 'data' with columns matching your CSV headers. You can then run any SELECT query against it. Re-importing will replace the previous table.
Can I run multiple SQL statements?▼
Yes. You can run multiple statements separated by semicolons. Each SELECT statement that returns results will show as a separate result tab (Result 1, Result 2, etc.). Non-SELECT statements like CREATE TABLE or INSERT can also be run.
What happens to my data when I close the page?▼
The database is in-memory and not persisted. When you close or refresh the page, all imported data and query results are lost. To save your work, export results as CSV using the Export button.
What are common SQL queries I can try?▼
SELECT * FROM data; (all rows) — SELECT COUNT(*) FROM data; (count) — SELECT col, AVG(num_col) as avg FROM data GROUP BY col ORDER BY avg DESC; (aggregate) — SELECT * FROM data WHERE col LIKE '%keyword%'; (text search) — SELECT DISTINCT col FROM data; (unique values)
Related Products
on GumroadDeveloper Cheat Sheet Bundle
10 print-ready cheat sheets for the tools developers use every day: Git, Docker, Linux CLI, SQL, Regex, HTTP Status codes, VS Code shortcuts, Bash scripting, jq/JSON, and Markdown.
Buy on Gumroad →DevToolkit Starter Kit
A ready-to-deploy developer tools website with 12 built-in tools. Astro + Preact + Tailwind. Deploy to Cloudflare Pages for free. Built-in SEO, dark mode, and ad-ready layout.
Buy on Gumroad →TypeScript Quick Reference Toolkit
5 practical reference files for TypeScript developers: cheatsheet, TS vs JS comparison, 20 utility types with real examples, tsconfig best practices template, and 15 common mistakes guide. Print it. Keep it on your desk.
Buy on Gumroad →You Might Also Need
SQL Formatter & Beautifier
Format and beautify SQL queries online. Auto-indent SELECT, FROM, WHERE, JOIN clauses, uppercase keywords, and minify SQL to a single line. Supports MySQL, PostgreSQL, SQLite. Free, runs in browser —
Open free tool →
Fake Data Generator
Generate realistic fake user data for testing and development. Choose locale (en/zh-TW/ja), count (1-100), fields to include, and output format (JSON/CSV/SQL INSERT). 100% browser-based.
Open free tool →
SQL Query Formatter
Format and prettify SQL queries online. Auto-indent SELECT, FROM, WHERE, JOIN clauses, uppercase or lowercase keywords, configurable indent size. Supports MySQL, PostgreSQL, SQLite. Runs in browser.
Open free tool →
More Free Tools
Related Articles
CSV to JSON Online: Convert Spreadsheet Data in One Click
Convert CSV to JSON online free — paste spreadsheet data and get valid JSON instantly. Handles headers, quoted commas, custom delimiters, and type coercion.
SQL Formatter Online: Beautify Queries for Readability
Format messy SQL queries online for free. Learn how SQL formatters improve code readability, support multiple dialects, and help teams write consistent queries.
SQL Formatter Online: Beautify and Indent SQL Queries Instantly Free
Format messy SQL queries online for free. Beautify SELECT, JOIN, subquery, and CTE syntax with proper indentation. Supports PostgreSQL, MySQL, SQLite, and SQL Server.
PostgreSQL vs MySQL vs SQLite: Choosing the Right Database for Your Project
PostgreSQL vs MySQL vs SQLite: which database is best for your project? Compare performance, features, ease of use, scaling, and ideal use cases.
Database Indexing Strategies Every Developer Must Know
Master database indexing in 2026. Learn B-tree, hash, composite, partial, and covering indexes with practical SQL examples for PostgreSQL and MySQL.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$9/mo after trial · Cancel anytime
Want the full toolkit?
Get DevPlaybook Pro
Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →