database
    SQL PlaygroundSQLite (WASM)
    1Define Schema
    SQLite DDL
    2Data Browser
    No tables defined
    Select a table to view data
    3SQL Query
    SQLite Query
    Query Result
    table_view

    Run a query to see results here

    About This SQL Playground

    WebFiddle's SQL Playground is a powerful online SQL editor where you can write, run, and share SQL queries instantly. Powered by sql.js (SQLite compiled to WebAssembly), it runs entirely in your browser with zero server dependencies.

    Key Features

    • check_circleMulti-engine support: SQLite, PostgreSQL, and MySQL syntax modes
    • check_circleVisual data browser with inline row insertion
    • check_circleCSV export for query results
    • check_circleShare queries via unique URLs
    • check_circleSample queries for quick learning

    How to Use

    1. 1Define your schema (CREATE TABLE) in the Schema panel.
    2. 2Browse your tables in the Data Browser.
    3. 3Write SQL queries in the Query panel.
    4. 4Click 'Run' to execute and see results instantly.

    Frequently Asked Questions

    Yes! The SQLite engine supports INNER JOIN, LEFT JOIN, RIGHT JOIN, CROSS JOIN, and self-joins.

    You can switch between SQLite, PostgreSQL, and MySQL syntax modes. Note that execution uses SQLite under the hood, but syntax highlighting adjusts accordingly.

    No. The database is created fresh each time you run your fiddle. Use the Share button to save your schema and queries as a URL.

    Embed this sandbox

    Drop this into any page and readers can run code without leaving it. The snippet travels in the URL, so there is nothing to host and no account to create. Open the sandbox, write your example, press Share, then paste that link’s query onto the embed URL to preload it.

    <iframe src="https://webfiddle.xyz/embed/sql" width="100%" height="480" loading="lazy"
            style="border:1px solid #ddd;border-radius:8px"
            title="WebFiddle sql sandbox"></iframe>
    Preview the embed