Learning PostgreSQL
Students can practice table creation, inserts, joins, aggregation, and other SQL without setting up a local server.
Independent tool overview
postgres.new is a lightweight PostgreSQL sandbox that creates persistent local PGlite databases in your browser, making it useful for practicing SQL and testing small schemas without installing a server.
Visit the official Postgres Sandbox site ↗
Overview
The current postgres.new is a streamlined SQL playground powered by PGlite, a WebAssembly build of PostgreSQL. Enter a query and the app automatically creates a local database, then displays the result and keeps a query history.
Databases and their data live in the browser rather than on a hosted PostgreSQL server. You can create multiple databases, rename them, and return to them from the same browser, but they are tied to that browser's local storage and are not production deployments.
The name has some history: Supabase's original AI-assisted postgres.new project moved to database.build in 2024. The current postgres.new experience is a separate, simpler SQL-first sandbox and does not currently expose the original AI chat, CSV, chart, or deployment workflow.
Use cases
The strongest fit depends on the job you need the product to complete, not the size of its feature list.
Students can practice table creation, inserts, joins, aggregation, and other SQL without setting up a local server.
Developers can reproduce a small schema and verify PostgreSQL syntax in a disposable environment.
Create several local databases to experiment with table structures and constraints before moving SQL into a real project.
The simple interface works well for showing a query and result without asking viewers to install database software.
Capabilities
PGlite packages PostgreSQL for local browser execution rather than translating SQL into a different database engine.
Running the first query creates a new database automatically, reducing setup to a single SQL statement.
A sidebar lets you create, select, rename, and delete separate browser databases.
Database files are stored through the browser so work can remain available across sessions on the same device and browser profile.
The interface keeps submitted SQL with its result or error, which makes iterative experimentation easy to follow.
The sandbox opens directly to the SQL editor without requiring registration or a cloud database project.
Process
Step 1
Start with schema SQL such as CREATE TABLE, or paste a query you want to test.
Step 2
Use the Run button or keyboard shortcut; the first query automatically creates a local database.
Step 3
Review returned rows, affected-row counts, or PostgreSQL errors in the query history.
Step 4
Adjust the SQL, keep building the current schema, or use the sidebar to start an isolated database.
Step 5
Copy useful SQL into version control or a hosted database; do not treat the browser sandbox as a production system or durable backup.
Cost
postgres.new is currently free to open and use, with no registration requirement or paid tiers presented in the app. It runs locally in the browser, so it is a sandbox rather than a hosted database plan.
Free
Create and query local PGlite databases in the browser.
Pricing checked . Check current pricing at the source ↗
Assessment
Compare
The right alternative depends on the specific output, workflow, controls and budget your project requires.
Coding
A custom GPT focused on translating requests into SQL queries.
Explore AI2SQL →Coding
A custom GPT for assistance with PostgreSQL database design and management.
Explore Database Builder →Business Operations
A general AI assistant that can explain and generate SQL, though it does not provide the same built-in local database.
Explore ChatGPT →Questions
postgres.new is a browser-based PostgreSQL sandbox. It uses PGlite to create and query local databases without requiring a PostgreSQL server installation.
Yes. The current app is available without registration and does not present a paid plan.
The current app stores its database files and history in the browser. The data remains tied to that browser profile and may disappear if you clear site storage.
No. Supabase's original AI-assisted postgres.new project was renamed database.build in 2024. The current postgres.new site is a simpler SQL-first PGlite sandbox.
No AI chat or natural-language database builder is visible in the current interface. It expects users to enter SQL directly.
No. It is best treated as a local sandbox for learning and experimentation. Use a hosted PostgreSQL service with backups, authentication, monitoring, and network access for production.
PGlite is a WebAssembly build of PostgreSQL designed to run locally in browsers and JavaScript environments. It supports real PostgreSQL behavior, but its embedded single-user environment differs from a full production server.
Bottom line
postgres.new is excellent for the moment between thinking of a SQL query and wanting to see it run. It is fast, free, and refreshingly simple, but its browser-local storage and minimal feature set make it a practice and prototyping tool—not a replacement for a hosted database or the more capable AI-assisted database.build.
Visit Postgres Sandbox website ↗
Get access to all our AI courses, hundreds of real-world AI use cases, live expert-led workshops, an exclusive network of AI early adopters, and more.
Get unlimited access to all of our current & upcoming industry-specific AI courses for the duration of your subscription.
To keep up with the rapid pace of AI, our team publishes AI implementation guides daily. Our library contains 300+ practical use cases to automate real-world work.
Join weekly, live, interactive sessions with industry leaders who are at the forefront of AI for hands-on implementation guidance and exclusive insights.
Network with an exclusive community of AI-first professionals who are working smarter with AI. Learn how early adopters are using AI in their work and businesses.