SQL Playground

Import Data
Drop a CSV, TSV or JSON file here, or click to browse
Ctrl+Enter to run (only the selection, if any) | Ctrl+Shift+F to format
Results
Run a query to see results here.
SQL Playground is a browser-based SQL environment. Paste or upload CSV data, and it gets loaded into an in-browser SQLite database powered by WebAssembly. Write and run SQL queries, view results in sortable tables, and export your work. Your tables are saved automatically in this browser, so they are still there next time. Select part of the editor text to run just that statement, and export any result as CSV or JSON or copy it straight into a spreadsheet. Everything runs locally in your browser — your data never leaves your device. Perfect for SQL practice, quick data analysis, or when you don't have access to a database tool.

How to Use This Tool

  1. Load data — Click "Sample Data" to load example tables, or import your own CSV files
  2. Browse your schema — Use the Schema Browser in the sidebar to see tables, columns, and row counts
  3. Write SQL queries — Type SQL in the editor (supports SELECT, INSERT, UPDATE, DELETE, CREATE TABLE, and more)
  4. Run and review — Click "Run" or press Ctrl+Enter to execute; results appear in a sortable table below
  5. Export results — Download query results as CSV or JSON, copy them into a spreadsheet, or export the entire database as a .sqlite file
  6. Come back later — Your tables are auto-saved in this browser; use Reset to start over

Common Use Cases