DB Fiddle - Online PostgreSQL Playground

Practice PostgreSQL online in your browser. Share code snippets with others.

Postgres
SELECT 2 + 2

A online PostgreSQL playground

This app is a browser-based SQL notebook that lets you execute PostgreSQL commands directly, without requiring any installation or server setup. Taking cues from Jupyter notebooks, this tool allows you to write, execute, and visualize PostgreSQL queries in real time within an easy-to-use, notebook-like interface.

Powered by PGlite, a WebAssembly port of PostgreSQL, this app brings the full power of PostgreSQL to your browser. Whether you're a developer, data engineer, or student, our app provides a flexible, lightweight environment to explore and manage PostgreSQL databases entirely in your browser.

Key Features

Interactive SQL Notebook

Enjoy a notebook-style interface where each cell can run PostgreSQL commands. The results are displayed inline, making it easy to review and refine queries as you work. Organize your queries, outputs, and notes for easy reference throughout your work.

Powered by PostgreSQL in WASM

The app runs PGlite, a WebAssembly version of PostgreSQL, allowing for powerful database operations to run natively in your browser.

Share your work

Easily share your queries, results, or individual SQL scripts online with others or export them to continue working outside the app.