Built for privacy. Made for easy access.

Run SQL on your JSON without uploading it.

Paste JSON, XML or CSV and query it with real PostgreSQL that runs inside your browser tab, or convert it to CSV, JSON or a Markdown table. All from your own device browser only. Nothing is sent to a server.

  • No uploads
  • No install, no account
  • Free and open source

From pasted JSON to answers in three steps

No database to install, no schema to write. QueryJSON turns your data into a table for you.

  1. Paste or open a file

    Drop in an API response, a log export or a spreadsheet saved as CSV. JSON, XML and CSV are detected automatically.

  2. See it as a table

    Nested JSON is flattened into rows and columns. Pick the columns you need, reorder them, search and filter.

  3. Query and export

    Write SQL against the json_data table, or use JSONPath. Download the result as CSV or JSON, or copy it as Markdown.

Examples you can run in one click

Real tasks with sample data. Each one opens in the app with the data loaded and the query already run, so you can change it and try your own.

Who are my best customers?

An orders API returns nested JSON. QueryJSON flattens customer.name into its own column, so you can group by it. Nested column names need double quotes in SQL.

Run this example
Data
{ "orders": [
  { "id": "A-1001", "status": "paid", "total": 129.90,
    "customer": { "name": "Priya Shah", "country": "IN" } },
  …
]}
Query
SELECT "customer.name" AS customer,
       count(*) AS orders, sum(total) AS spent
FROM json_data
WHERE status = 'paid'
GROUP BY "customer.name"
ORDER BY spent DESC;
Result
customerordersspent
Priya Shah2370.4
Lena Ortiz2175.24

Which region sells the most?

Paste a CSV export straight from a spreadsheet or database. Numbers are detected automatically, so you can do maths on them right away.

Run this example
Data
date,region,product,units,unit_price
2026-01-05,North,Keyboard,12,49.5
2026-01-05,South,Mouse,30,19.9
2026-01-12,North,Monitor,4,229
…
Query
SELECT region, sum(units) AS units,
       round(sum(units * unit_price), 2) AS revenue
FROM json_data
GROUP BY region
ORDER BY revenue DESC;
Result
regionunitsrevenue
South361971.00
North341868.20
West33893.50

Which service is failing, and how slow is it?

Load JSON log entries and summarise them with PostgreSQL features like FILTER, which a plain search box can't do.

Run this example
Data
[
  { "level": "error", "service": "checkout", "latency_ms": 2300,
    "message": "payment gateway timeout", "time": "…" },
  …
]
Query
SELECT service,
       count(*) FILTER (WHERE level = 'error') AS errors,
       round(avg(latency_ms)) AS avg_latency_ms,
       max(latency_ms) AS slowest_ms
FROM json_data
GROUP BY service
ORDER BY errors DESC;
Result
serviceerrorsavg_latency_msslowest_ms
checkout210902300
search1580950
auth0323600

Turn an XML feed into a table

XML is converted to JSON and then to rows, one per repeated element. Values from XML arrive as text, so cast them with ::numeric when you need numbers.

Run this example
Data
<catalog>
  <book><title>Dune</title><genre>Sci-fi</genre>
        <price>9.99</price><year>1965</year></book>
  …
</catalog>
Query
SELECT "book.genre" AS genre, count(*) AS books,
       min("book.price"::numeric) AS cheapest,
       min("book.year"::int) AS oldest
FROM json_data
GROUP BY "book.genre"
ORDER BY genre;
Result
genrebookscheapestoldest
Fantasy27.991937
Sci-fi28.491965
Thriller16.992012

Find what's out of stock, at any depth

JSONPath works on the original JSON, however deeply nested. .. searches every level, and [?( )] filters the matches.

Run this example
Data
{ "store": { "products": [
  { "name": "Hoodie", "variants": [
      { "sku": "HD-02-M", "size": "M", "stock": 0 }, … ] },
  …
]}}
JSONPath
$..variants[?(@.stock == 0)]
Result
skusizestock
TS-01-MM0
HD-02-MM0
HD-02-LL0

Convert between formats, too

Don't need a query? Paste your data and take it out in the format you need. Nested JSON and XML are flattened into rows and columns along the way.

Pick columns and filter rows first, and only those are exported. Query results export the same way.

Convert your data

Paste or open

  • JSON
  • XML
  • CSV

Get

  • CSV download, opens in Excel or Google Sheets
  • JSON download or copy
  • Markdown table, copied for GitHub, Jira or docs

What you can do with it

Everything a quick look at a dataset needs, without leaving the browser tab.

Full PostgreSQL, not a lookalike
Powered by PGlite, PostgreSQL compiled to WebAssembly. Use GROUP BY, JOIN, window functions and the PostgreSQL functions you already know.
JSON, XML and CSV in one place
XML and CSV are converted to JSON so every format gets the same table view, filters and queries.
JSONPath for nested data
Pull values straight out of deeply nested structures with expressions like $.users[?(@.salary > 90000)].
Filters without writing SQL
Stack filters such as contains, equals, greater than or matches regex, and search across every column at once.
Columns your way
Show, hide and drag columns into the order you want before you export.
Export what you found
Save results as CSV for Excel or Google Sheets, as JSON, or copy them as a Markdown table for a ticket or pull request.

Your data never leaves your browser

Most online JSON tools send your file to their server to process it. QueryJSON doesn't have a server that could receive it. The database runs inside the page, your data lives in the tab's memory, and it's gone when you close the tab.

That makes it safe to use with the things you shouldn't paste into a random website: production API responses, customer exports, logs with personal data.

Don't take our word for it

  1. Open QueryJSON and your browser's developer tools.
  2. Go to the Network tab.
  3. Paste your data and run a query.
  4. Watch: no request carries your data anywhere.

The full source is on GitHub under the MIT license.

Made for the everyday data jobs

The moments when opening a database or writing a script feels like too much.

How it compares

Against the typical free online JSON converter.

QueryJSONTypical online converter
Where your data is processedIn your browserOften on their server
Account or sign-upNeverSometimes, for larger files
Query languageFull PostgreSQL and JSONPathRarely more than a search box
FormatsJSON, XML and CSV in; CSV, JSON and Markdown outUsually one conversion per tool
Source codeOpen, MIT licenseUsually closed
PriceFreeFree with ads or limits

Frequently asked questions

Is my data sent to a server?

No. Parsing, filtering and SQL queries all run in your browser tab. Your data stays in the tab's memory and is gone when you close it.

How can I check that myself?

Open your browser's developer tools, switch to the Network tab, then paste data and run a query. You will see no requests carrying your data. The full source code is on GitHub.

Is it real SQL?

Yes. QueryJSON uses PGlite, which is PostgreSQL compiled to WebAssembly. Your data is loaded into a table called json_data, and you can use WHERE, GROUP BY, JOIN, window functions and the rest of PostgreSQL.

Which formats can I load?

JSON, XML and CSV. Paste them or open a file, and the format is detected for you. XML and CSV are converted to JSON first.

Does it work offline?

You need a connection the first time, to load the app and the database engine. Once the page has loaded, queries run locally for the rest of the session.

How much data can it handle?

It depends on your device's memory, since everything runs on it. Thousands of rows are comfortable. Very large datasets may be slower on less powerful machines.

Can I just convert JSON, XML or CSV without writing a query?

Yes. Paste or open your data and click Parse. You can then download it as CSV or JSON, or copy it as JSON or a Markdown table. Nested data is flattened into columns, and only the columns and rows you've selected are exported.

Should I use SQL or JSONPath?

Use SQL for counting, grouping, joining and filtering rows: your data is in a table called json_data. Use JSONPath to pull specific values out of the original JSON, especially when it's deeply nested.

How do filters work?

Add as many filters as you need, such as contains, equals, greater than or matches regex. A row has to match every filter to be shown, and exports include only the rows that match.

Are my queries saved?

No. Nothing is stored, not even your queries, so copy any query you want to keep before closing the tab.

How do I report a bug or ask for a feature?

Open an issue on GitHub. Bug reports with a small sample of the data that caused the problem are the easiest to fix.

How do I get in touch?

Email [email protected] for questions or feedback. For bugs and feature requests, open a GitHub issue so others can follow along.

Is it free?

Yes. QueryJSON is free, needs no account and is open source under the MIT license.

How QueryJSON stays free

QueryJSON is free, open source, and has no ads, accounts or tracking. That's how it will stay. It's built and looked after by one developer in their spare time, and keeping it running takes a little ongoing work.

Sponsors help cover that. To give a sense of scale, $1 a year from 50 people would keep QueryJSON running and free for everyone for a whole year.

If it's useful to you and you'd like to help, you can sponsor it on GitHub or buy me a coffee. Starring the repo, sharing it with a teammate or reporting a bug helps too.

Sponsor on GitHub

What keeping it running involves

Staying online
The domain and hosting for queryjson.com.
Keeping up with browsers
Testing and updating as browsers and the PGlite database engine change.
Fixes and improvements
Fixing the bugs people report and building the features they ask for.
Staying private
No ads or tracking to pay the bills, so it can stay that way.

Try it now

Open the app and paste your own data. No data at hand? Start with the sample data or one of the examples above.