UTILITIES NEWBIE

JSON formatter and viewer

Format strict JSON, inspect its structure, compare documents and preview explicit transformations. Source text stays editable and is replaced only when you choose to use the output.

Input

Import a local text file

0 UTF-16 code units

Inputs start empty. Load example fills them only when you choose it. Reset clears current inputs and results.

Auto-format starts off. Formatting writes to Output; your source stays editable.

Optional local draft

Saving stores a plaintext draft in this browser on this device. Do not save secrets or use this on a shared device. Nothing is saved or loaded automatically. Reset does not delete a saved draft; use Delete local draft.

No draft has been loaded.

Output

This tool processes inputs in your browser. See the Privacy Policy for details about hosting and performance measurement.

Follow types and array order. Full explanation follows.
id is the string "007". Text explanation

The checked object preserves the leading-zero identifier string, false boolean, b/a array order and nested numeric zero. The viewer displays decoded structure; it does not supply a business schema or authorize a record.

Explore a JSON value without losing its original meaning

Start with the document you need to inspect

JSON Viewer helps you read a strict JSON document as formatted text and an expandable value tree. It also offers related inspection operations such as validation, a bounded graph, comparison and explicit transformations. Begin with a small synthetic document whose values you understand. The workspace separates editable source from generated output, so a readable representation does not silently become the new source. Decide whether you want to inspect structure, compare values or transform text before choosing an action; these are different questions even though they share one parser.

The useful starting distinction is between a value and its spelling. A string containing zero-zero-seven is different from the number seven. The boolean false is different from an empty string, and zero is different from a missing property. Expanding a tree can make those distinctions easier to see than scanning a long line. It does not attach business meaning to the values. A field named active does not prove an account is enabled, and a syntactically valid object does not establish that an API accepted the corresponding record.

Paste JSON source, choose the required operation and review the output before transferring it. Auto-format starts off, and formatting writes to Output while the source stays editable. Optional local draft storage is a separate explicit feature, not an automatic backup. Avoid secrets and personal records when a synthetic fixture can demonstrate the structure. Local parsing alone does not describe every service associated with a public page; use the existing privacy information when deciding what belongs in the editor. None of the inspection actions submits the document to an application API.

Follow types and array order in the checked fixture

Checked synthetic input

{"id":"007","active":false,"tags":["b","a"],"meta":{"count":0}}

Recorded processor observation

{
  "id": "007",
  "active": false,
  "tags": [
    "b",
    "a"
  ],
  "meta": {
    "count": 0
  }
}

The checked document has an identifier string zero-zero-seven, a false boolean, an array containing b followed by a, and a nested count of zero. Format produces readable JSON while retaining those decoded values. In the tree view, expand the object and its nested members rather than inferring types from their names. The identifier’s quotes matter: converting it into a number would discard its leading zeros and create a different value. The diagram singles out these distinctions instead of suggesting that formatting verifies an application’s data model.

The array order remains b then a. Sorting object keys is a separate transformation and must not be confused with sorting array elements. If the array represents steps or ranked items, its position can carry meaning that a visually tidier order would change. Keep a small example with deliberately non-alphabetic array order when testing a consumer. The output block records an actual processor result so that another reviewer can compare the values and punctuation without needing access to private production records or guessing what an abbreviated screenshot omitted.

Try Explore and View tree after formatting the fixture. Use the graph only as a bounded overview: the graph is limited to the first two hundred nodes while full formatted data remains available within the tool’s other limits. An absent graph node is therefore not proof that the document lacks that value. For a detailed review, return to the tree or source and identify the actual parent and member. Keep the representation’s display limit separate from a conclusion about the complete document, especially when comparing a large nested record.

Know what the strict parser rejects and what comparison means

The parser rejects duplicate object keys, unsafe integer values and excessive nesting rather than silently accepting every spelling that another JSON reader might allow. Inputs are bounded to one hundred thousand characters, ten thousand values and forty levels. Output is bounded to one million characters. These are local implementation limits, not a complete application schema. A document can pass them while missing a required business field, containing the wrong measurement unit or referring to a record that does not exist. Those requirements need their own application-level validation.

Floating-point values follow JavaScript number behavior. Do not use a successful parse as proof of exact decimal arithmetic or arbitrary-precision integer preservation. Keep identifiers that are defined as text in quoted strings, and use an appropriate exact-number workflow when the application requires it. A later display can normalize a number’s spelling even though the decoded number is unchanged. Comparing raw files byte for byte answers a different question from comparing decoded JSON values, so state which type of difference your review intends to find.

Compare JSON uses decoded values and object keys rather than whitespace-only differences; array order matters. Its displayed changes are bounded to one thousand differences, and paths use JSON Pointer escaping. A key containing a slash or tilde needs that escaping in a path, rather than being mistaken for another nested level. A successful comparison is not a merge or synchronization operation. Preserve both original documents and the bounded comparison output, and do not interpret an incomplete displayed list as a guarantee that no further differences exist beyond the cap.

Use exploration as a documented review step

For an API-response review, start with a reduced synthetic object that keeps the relevant types and nesting. Expand the tree and confirm the path to the value being discussed. Then compare a second specimen with one deliberately changed property or array position. This gives a colleague a concrete way to reproduce the observation instead of relying on a vague claim that the data looks wrong. Keep field meaning, units and required properties in the actual API contract; the viewer cannot derive them from a key’s English name.

For a teaching exercise, contrast a quoted identifier, a boolean and a numeric zero, then show how the same document appears as source, formatted output and an outline. The accessible diagram and text equivalent carry those relationships without depending on a screenshot alone. If a malformed document needs trailing-comma removal, use the explicit preview and inspect its warning. That operation removes trailing commas only; it does not repair arbitrary syntax or prove that a guessed correction matches the author’s intention. The original source remains the evidence for the original failure.

Copy and Download transfer the current generated text. Use output as source is a separate deliberate action, and Reset clears the current workspace rather than deleting a saved local draft. Check actual pasted or downloaded content before handing it to another application. A tree view, graph or valid JSON message is not deployment approval, schema certification or authorization to process personal information. The useful endpoint is a specific, reproducible observation about structure and values, with display limits and any required consumer checks stated alongside it.

Supporting reference: JSON context; this viewer has its own strict-parser and display limits.

Find a tool

Type a tool name, such as JSON or percentage.

Quick links

Browse by category

All tools