JSON Query Tool Online — MongoDB-style Filtering

Filter, search, and extract specific records from massive JSON datasets directly in your browser. Use familiar MongoDB query syntax like $gt, $in, and $regex.

Open JSON Query Tool →

How to query JSON online

  1. Paste your JSON document into the JSON OS workspace.
  2. Press Cmd/Ctrl + Shift + K or click the Query icon in the side panel.
  3. Set the target JSON path (e.g., $.users to target an array of users).
  4. Write your MongoDB-style query, for example: { "age": { "$gt": 18 }, "status": "active" }.
  5. Results are highlighted instantly and mapped to their exact location in the document.

MongoDB Syntax

Leverage your existing MongoDB knowledge. We support full logical, comparison, and array operators.

Live Highlighting

Query results instantly map to the document tree, making it easy to see exactly where matches occurred.

Deep Extraction

Extract specific nested structures instead of reading through megabytes of raw text.

Browser Native

No backend execution means no waiting for network requests. Query runs instantly via Web Workers.

Frequently Asked Questions

What query syntax is supported?

The tool uses a MongoDB-style query engine. You can use operators like $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin, $exists, $type, $regex, $mod, $size, $all, $elemMatch, $and, $or, $nor, and $not.

Can I filter an array of objects?

Yes! Just set the target path to your array (e.g., $.users) and provide a query object (e.g., {"age": {"$gt": 18}}). The tool will return a list of all objects that match the criteria.

Does the query run locally?

Yes, all queries are executed securely within your web browser. No data is sent to a server.