[Go to site: main page, start]

FREE BROWSER-LOCAL FILE TOOLS

Filter and transform JSON locally.

Open or paste JSON, inspect its structure, edit, format or minify it. Your contents stay in this browser.

Step 1: open your file

Start with a complete JSON value. Contents stay in this browser.

  1. In Query & transform, enter a JSONata expression and choose Preview query.
  2. Review the complete result, then download a separate copy or explicitly replace the source.
Paste JSON

File contents stay in this browser. Download changes before refreshing or closing the tab.

Inspect nested structure

Searchable tree and raw editor views make nested objects, arrays, keys, values, and record boundaries easier to inspect.

Edit, format and validate

Open Query & transform, enter a JSONata expression such as items[qty > 1].name, then choose Preview query. Review the complete result before downloading a separate copy or explicitly replacing the source; Undo restores the source. Syntax problems are reported without sending the document to a server.

Choose the matching format

Use JSON for one complete value, JSONL or NDJSON for one JSON value per line.

Resolve a JSON Pointer with Python

For a repeatable workflow, run a local script or command. Choose an example below for setup, code and output details.

Read an exact path from a JSON document

The pointer /service/name selects the name inside service. Tilde escapes follow RFC 6901.

View code and setup

Before you start

  • Install Python 3. Save the script beside your UTF-8 input file and run it with python3 script.py. No extra package is required.
Python script
import json
from pathlib import Path

value = json.loads(Path("input.json").read_text(encoding="utf-8"))
pointer = "/service/name"
for part in pointer.split("/")[1:]:
    token = part.replace("~1", "/").replace("~0", "~")
    if isinstance(value, list):
        if not token.isascii() or not token.isdigit() or (len(token) > 1 and token.startswith("0")):
            raise ValueError("Expected a non-negative array index without leading zeros")
        value = value[int(token)]
    else:
        value = value[token]
print(json.dumps(value, ensure_ascii=False, allow_nan=False))

Limits and output

  • These examples parse the document into memory. Python integers are exact. Unless a script explicitly uses Decimal, decimals use binary floating point; reserialization can change numeric spelling or precision. Duplicate object keys keep their last value unless explicitly rejected.
  • A read-only exact lookup, not JSONPath or JSONata. Missing fields or invalid array indices raise errors.

Documentation: Python JSON documentation

Frequently asked questions

How do I filter a JSON array?

For {"items":[{"name":"Small","qty":1},{"name":"Large","qty":2}]}, open Query & transform, enter items[qty > 1].name and choose Preview query. The result is "Large". Review it before downloading a separate result copy or choosing Replace document with result. Preview and copying do not replace the source; replacement is one undoable edit, and saving is separate.

Can I calculate and transform JSON with JSONata?

Open Query & transform to select, filter and preview a local result before explicit replacement; Undo restores the source. Numeric values and text casts have precision limits. Arithmetic requires provable safe integer intermediates and supports at most 100,000 input values/containers: decimal arithmetic, unknown function contexts and unbounded calculations are refused. Aggregates check their subtotals; nonintegral averages and division are unavailable. Decimal selection and comparisons remain available. This is a restricted query tool, not an arbitrary-precision calculation engine.

Can AI help draft a JSONata query?

When this task is available for the configured destination, open Query & transform and expand Draft a query with assistance. Prepare a JSON Pointer's observed field metadata, review it and explicitly include it. Optional exact sample values require separate preparation and inclusion; current expression text is also optional. The exact request preview shows what will be sent. Metadata covers direct fields and at most three selected array items, not a complete schema. Local draft checks parse JSONata and reject unsafe numeric literals and $eval without evaluating the query. Use reviewed JSONata draft changes only expression text; Preview query runs it separately with the existing source-dependent precision and arithmetic guards. Results and model explanations remain unverified until the relevant separate checks. Cancelling or stale source/query/model context cannot replace manual query text. Unconfigured tasks stay unavailable; source files, paths, grants and local schema/reference resources are not attached automatically.

Can I select one value without a JSONata query?

Yes. Use Tree and an RFC 6901 JSON Pointer such as /items/0/name for an exact source path. Pointer lookup and Query & transform are separate tools; a pointer does not filter or calculate a new result.

Does my JSON file get uploaded?

Local editing processes selected and pasted contents in your browser. Optional Assistance sends your goal and only the context you explicitly prepare and include, such as a selected subtree or observed query field metadata, to OpenRouter and the configured model provider. Its preview shows exactly what is included. Ordinary page and asset requests also reach the hosting provider.