Free · open source · no install
Query Postgres. Browse S3. Install nothing.
One browser client for your remote data: a full PostgreSQL studio and an S3 bucket browser in the same tab. Paste a connection string or an access key and you are in. What you save stays in your browser, and there is no account.
Postgres on Supabase, Neon, RDS or your own server, and S3-compatible storage such as AWS S3, R2 and MinIO, as long as it is reachable from the internet. Self-host it for private networks, or read the source.
Compared honestly
Where it wins. Where it doesn’t.
pgquery is ours, so the gaps are listed as carefully as the strengths. Full comparison with CloudBeaver and Adminer, or vs DBeaver.
| Feature | pgquery | pgweb | DbGate | pgAdmin 4 | Supabase Studio |
|---|---|---|---|---|---|
| Self-hosted as | One Go container (or use the hosted app) | One Go binary or container | Node.js server (container or npm); also desktop | Python web app | Part of the Supabase stack |
| Own login and user accounts | NoNone needed when hosted; self-hosted, use a VPN or auth proxy | PartlyHTTP basic auth | Yes | Yes | PartlyBasic auth when self-hosted |
| SSH tunnel | No | Yes | Yes | Yes | No |
| Visual EXPLAIN | YesTree with time share | PartlyEXPLAIN as text | Not in its feature list | Yes | Yes |
| Row Level Security editor | Yes | No | Not in its feature list | Yes | Yes |
| Performance and security advisors | Yes | PartlyActivity and settings views | No | PartlyActivity dashboards | YesMore checks than pgquery |
| Backup and restore | NoUse pg_dump | Partlypg_dump export, no restore | PartlyImport / export, NDJSON archives | Yes | PartlyPlatform backups |
| Import CSV | No | No | YesAlso Excel, JSON, XML | Yes | Yes |
| License | MIT | MIT | GPL-3.0 (paid Premium) | PostgreSQL License | Apache 2.0 |
| Maturity | New (2026), one maintainer | 10+ years, small team | Very active, company-backed | 10+ years, PostgreSQL community | Large company, very active |
Where pgquery wins
- More than a query explorer: RLS policies, roles, indexes, functions, triggers, extensions and settings, which pgweb doesn’t cover.
- Postgres-specific depth DbGate doesn’t focus on: Row Level Security, performance and security advisors, pg_stat_statements.
- EXPLAIN ANALYZE as a tree that points at the slowest node and flags bad row estimates.
- Nothing to install: open the hosted app and connect. Or self-host one small, stateless container; nothing is stored on the server.
Where pgquery loses
- No SSH tunnels. pgweb, DbGate, pgAdmin and CloudBeaver connect through a bastion host where pgquery cannot.
- No login of its own. pgweb has basic auth, DbGate, pgAdmin and CloudBeaver have accounts; a self-hosted pgquery needs a VPN or an auth proxy.
- PostgreSQL only. DbGate, CloudBeaver and Adminer also speak MySQL, SQLite, SQL Server and more.
- No backup / restore, CSV import or schema diff. DbGate and pgAdmin have them, and DbGate previews even row edits as SQL.
Procedure 1
Get started
postgres://user:pass@host/dbdocker run -p 54280:54280 ghcr.io/hxndrik/pgqueryContents
Eighteen tools in one window. The linked chapters have their own guide.
Connecting a hosted database? Step-by-step for Supabase, Neon, Amazon RDS and local or Docker.
Specifications
| Runs at | pgquery.dev/app, or self-hosted as one container (amd64, arm64) |
|---|---|
| Accounts | None |
| Where state lives | Your browser (localStorage). The server is stateless and keeps nothing. |
| Hosted app reaches | Databases on the public internet. Self-host for private networks and localhost |
| Schema changes | Shown as SQL before they run; dropping a table asks first |
| Encryption | SSL when the server offers it, with a warning when it doesn’t |
| Connection formats | postgres:// URI, Npgsql / ADO.NET key=value (Host=…;Database=…) |
| Also browses | S3-compatible buckets, one per connection (what it does and doesn’t do) |
| License | MIT |
Note from the author
A personal project
pgquery is a tool I built for my own Postgres work and decided to publish. It is free and will stay free; it is not built to make money. Expect a few rough edges. If something breaks, a feature is missing or the hosted limits get in your way, open a GitHub issue: a link and a short description is plenty.
Questions
What is pgquery?
A free, open-source client for remote data that you open in your browser: a PostgreSQL studio (SQL editor, table editor, ER diagram, RLS policies, roles, indexes, an EXPLAIN plan viewer, performance and security advisors) and an S3 bucket browser in one tab. You connect your live database or bucket; nothing is installed.
Where are my connection strings stored?
Saved connections (S3 keys included), tabs and history live in your browser (localStorage). Each query is sent with its connection string to the pgquery server, which opens a connection, runs it and returns the rows. S3 requests work the same way, and uploaded and downloaded files pass through the server without being kept. The server is stateless and open source; its code does not log or store connection strings, keys, queries or files. To keep everything inside your own network, self-host.
Is it really free?
Yes. MIT licensed, no paid tier, no account.
Can it browse S3 buckets?
Yes, one bucket per connection on AWS S3, Cloudflare R2, MinIO or another S3-compatible service: folders, previews, upload, download and delete. It has no multipart upload, versioning or bucket management; see the S3 guide for the full list.
Does it work with RDS, Supabase, Neon or a VPS?
Yes. The hosted app reaches any PostgreSQL server on the public internet. For a database in a private network or on localhost, self-host pgquery next to it.
What are the limits on pgquery.dev?
The hosted app at pgquery.dev reaches databases and buckets on the public internet only (private and local addresses are refused), and limits rows per query, query time, upload size and requests per IP. Self-host to reach private networks and set your own limits.
Something is broken, missing or too limited. Where do I say so?
Open a GitHub issue at https://github.com/Hxndrik/pgquery/issues/new/choose; a link and a short description is plenty. That goes for bugs, missing features, hosted limits that get in your way, or interest in more than the free app offers. pgquery is a personal project, so feedback is very welcome.
How do I self-host it?
Run docker run -p 54280:54280 ghcr.io/hxndrik/pgquery and open http://localhost:54280. It has no login of its own, so put a shared instance behind a VPN or an authenticating proxy.
How is it different from pgweb?
pgweb is a lean, mature query explorer shipped as one binary, with SSH tunnels. pgquery adds the administration side (RLS policies, roles, indexes, functions, triggers, extensions, settings), advisors, a visual EXPLAIN tree and an ER diagram; it has no SSH tunnels yet.
Is pgquery related to the pg_query parser library?
No. pg_query by pganalyze is a Postgres query parser for developers; pgquery is a database GUI.