SQL Playground
About

About SQL Playground

Write and run SQL right in your browser.

What it does

SQL Playground is a full SQL workspace that runs entirely in your browser. Write queries in SQLite, MySQL / MariaDB, PostgreSQL, SQL Server (T-SQL), Oracle, MaxCompute or Hive / Spark SQL — the playground translates them so they run on a built-in SQLite engine. Practise with ready-made sample databases, import your own CSV, JSON, SQL or SQLite files, and copy results straight into a spreadsheet. There's nothing to install and no server to connect to.

How to use it

  1. Pick a SQL dialect at the top.
  2. Load a sample database from the ⋯ menu (support desk, e-commerce or company HR), or import your own file.
  3. Write a query — or start from the Examples tab — and press Run (Ctrl/⌘ + Enter).
  4. Filter the results and copy them as TSV, CSV, Markdown, JSON or INSERT statements.

Why I made this

I don't trust most “free” tools online.

Most free websites that convert a PDF or crunch your numbers do it on their own servers. Your files and data leave your device, and you have to trust that they're deleted afterwards. Very few of them can honestly promise zero data retention.

I use these every day — so I made my own.

These are tools I actually need in my day-to-day work and life. Instead of uploading my stuff to a stranger's server every time, I built small versions that run entirely in the browser. Nothing to upload, nothing to retain.

Made for me, shared with you. Why not?

I built them for personal use, but there's no reason to keep them to myself. If they're useful to me, they might be useful to you too — free, no sign-up, and your data stays with you.

Frequently asked questions

Is this a real database server?

No. Everything runs on SQLite compiled to WebAssembly inside your browser. Other dialects are translated to SQLite, so most everyday SQL works, but some vendor-specific features may not.

Is my data uploaded?

No. Files you import are read on your device, and queries run locally. Nothing is sent to a server.

Will my work be saved?

Your tabs, query history and database are kept in this browser's local storage, so they're still there when you come back on the same device.

Is it good for learning SQL?

Yes. The sample databases and the examples for each dialect are a quick way to practise joins, grouping and window functions.

Your privacy, in short

SQL Playground does its work in your browser. Your query tabs, history, theme and current database are saved in your browser's local storage so you can pick up where you left off. Imported files are read on your device and never uploaded. Read the full Privacy Policy.

SQL Playground emulates other SQL dialects on SQLite. Results can differ from a real database server, so test important queries on your actual system.

Open SQL Playground →

SQL Playground is part of useful-indeed, a growing shelf of small, free web tools.