Large JSON Viewer

Opens a local JSON file in a read-only Monaco editor for inspection. The browser reads and validates the whole file before displaying it, so the practical size depends on available memory and document structure.

Last updated:

No file selected
Loading editor...

Large JSON Viewer — Inspect Local JSON Files

What Large JSON Viewer does

Open a local JSON file to inspect its original text in a read-only editor. The viewer reads the entire file, strips a leading byte order mark if present, and parses the text once to check JSON syntax before showing it. It keeps the original indentation and number spellings in the displayed text.

Worked examples

Open a UTF-8 file with a byte order mark

A Windows export starts with the bytes EF BB BF before the opening brace. The first character in the input block below is the invisible BOM.

Input

{ "region": "west", "count": 2 }

Output

{ "region": "west", "count": 2 }

The viewer displays the JSON starting at the opening brace. The spaces inside the object and the final newline stay in place. You can download this text without the leading marker. This is useful when checking an export for a consumer that rejects a BOM, but compare the original bytes separately if the file is signed or checksummed.

Recognize a JSON Lines export

A log exporter wrote one object per line. Save both lines in a file and open it with Choose File.

Input

{"id":1}
{"id":2}

Output

Unexpected non-whitespace character after JSON at position 9 (line 2 column 1)

The error shown here is from the V8 runtime used for this fixture. Other browsers may phrase the same error differently. Each line is valid on its own, but a JSON document cannot contain a second top-level object. To turn this small fixture into an array, run jq -s . events.jsonl > events.json, then open events.json. The result has two records in source order.

What to check before using the output

Watch the file shape as well as the byte count

In one local headless Chrome 156 run, a 2,888,891-byte compact array of 100,000 small records took about 215 ms from Playwright file selection to the editor holding the text and Download becoming available. The browser and page were already open. That single measurement is a reference point, not a supported size ceiling. A deeply nested file or a document with many short lines can behave differently.

Limits and streaming alternatives

The viewer needs room for the file text and the objects created during parsing. If you only need selected values from a large export, a streaming reader avoids building an editor model for the whole file. This jq command emits the values of id fields from the sample array, one per line. Python’s ijson is another option when you need to process items incrementally in a script.

jq --stream -c 'select(length == 2 and .[0][-1] == "id") | .[1]' events.json
1
2

Keep a byte-for-byte original when it matters

The editor shows decoded text. Removing a BOM changes the downloaded bytes even though the data is the same. If you are comparing hashes or sharing a forensic copy, retain the original file and run checksums against that copy.

How to Use the Tool

  1. Select Choose File and choose the export. After validation, the name and size appear above the editor.
  2. Use the editor search shortcut to locate a known ID or property. Search for its spelling in the file, including quotes if they help narrow the match.
  3. Read the surrounding source before deciding whether a match is the field you want. A key named id can occur at several nesting levels, and a text search can also find the same characters inside a string.
  4. Use Clear to remove the loaded document. To fix invalid input, make a copy in an editor, correct it, then load that copy.

Key Features & Specifications

  • The read-only editor prevents accidental source edits while inspecting a file.
  • Copy and Download use the loaded text, so they preserve layout and the characters in numeric literals.
  • A validation failure is shown before the new file is displayed. Use the reported position to inspect the source near the failure.

Frequently Asked Questions (FAQ)

Q:Can I fix invalid JSON in the viewer?
No. Edit a copy in another editor and open the corrected file. The viewer can point you toward invalid syntax but never inserts missing commas or closing braces.
Q:Will an oversized integer look rounded?
The editor displays the original numeric token because validation does not serialize the parsed object. A later application that parses that token as a JavaScript Number can still round it.
Q:Can a valid export use JSON Lines?
Yes, but JSON Lines and one JSON document are different file formats. Read a large JSON Lines file with a line-oriented tool. For a small file, jq -s can collect its values into an array before opening it here.