QueryJSON / Query JSON with SQL

Query JSON with SQL in your browser

Paste JSON and run real PostgreSQL on it: filter, group, join and aggregate without installing a database. QueryJSON uses PGlite, PostgreSQL compiled to WebAssembly, so it all runs inside your browser tab.

Everything runs in your browser tab. Your data is never uploaded, and it is gone when you close the tab.

How it works

  1. Paste your JSON

    Paste JSON, CSV or XML, or open a file, then click Parse. Your data is loaded into a table called json_data.

  2. Write a query

    Use any PostgreSQL you know. The hint under the query box lists your tables and row counts.

  3. Run and export

    Press Ctrl+Enter (⌘+Enter on Mac), then download the result as CSV or JSON, or copy it as Markdown.

Good to know

Frequently asked questions

Is this real PostgreSQL?

Yes. QueryJSON uses PGlite, which is PostgreSQL compiled to WebAssembly, running inside your browser tab.

What is the table name?

Your data is loaded into a table called json_data. Nested data with several arrays creates extra tables, which are listed under the query box.

Why do some column names need double quotes?

Nested fields are named with dots, like customer.name, and PostgreSQL needs double quotes around names that contain dots.

Is my data uploaded anywhere?

No. The database runs in your browser tab and nothing is sent to a server.

More tools