Loading editor...
Our free online PostgreSQL editor lets you write and run PostgreSQL queries directly in your browser using PGlite (real PostgreSQL compiled to WebAssembly). Test queries, design schemas, and learn SQL with no database installation required.
Write your PostgreSQL query in the editor
Click Run to execute against the in-browser database
View results in the table output below
Create tables and test your schema design
Yes, PGlite is PostgreSQL compiled to WebAssembly, supporting real PostgreSQL syntax including advanced features like CTEs, window functions, and JSON operations.
Browser memory limits apply (typically 2-4GB). This is ideal for learning and testing, not production data storage.
Basic PostgreSQL is available. Some extensions may not be supported in the WebAssembly environment.
Data persists in your browser session. Closing the browser clears the database. Export your data or schema to save it.