Skip to main content

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.

✓ SQLite in your browser ✓ Import CSV, export results ✓ No data leaves your device

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)

Share this tool: X / Twitter LinkedIn
✓ 60,000+ developers use DevPlaybook ★★★★★ 4.8 / 5 on Gumroad ✓ MIT licensed · Instant download ✓ No login required

Related Products

on Gumroad

You Might Also Need

More Free Tools

Enjoying this tool? Get more like it.

Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.

DevPlaybook Pro 7 days free

Unlock AI-Powered Dev Tools

  • ⚡ AI Code Review, Doc Generator & SQL Builder
  • ⚡ All premium templates & early access
  • ⚡ Member discounts on Gumroad products
Start Free Trial →

$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.

$79
$241 separately Save $162 (67% off)
Get DevPlaybook Pro — $79 →

MIT licensed · Instant download · No subscription

See what's included → Browse all deals →