Online JSON tool · Runs in your browser

JSON formatter & viewer
that explains your errors

Paste, drop or open any JSON. Validate it as you type, see the exact line of every error, repair broken JSON, explore it as a tree or table and convert it to YAML, CSV or TypeScript.

input.json

Drop a .json file anywhere or press Ctrl+V to paste. A URL works too.

Everything you need to work with JSON

01

JSON formatter and validator

Validation as you type, with the exact line and column of every error and a plain-language explanation. Format with 2 spaces, 4 spaces or tabs, minify, or sort keys.

02

Tree viewer, table and search

Explore large documents in a collapsible tree, see arrays of objects as a sortable table and search keys and values. Click any node to copy its path or value.

03

JSONPath queries

Filter with JSONPath: $.items[*].name, ..id, slices and filters like [?(@.price < 10)]. The result shows in the tree and the table, and that's what you export.

04

Repair and convert

Fix almost-JSON in one click: comments, trailing commas, single quotes, unquoted keys, Python True/None, JSON Lines. Convert to YAML, CSV, XML or TypeScript types.

How it works

  1. Paste or drop

    Paste JSON, drop a file or open a URL. Nothing is uploaded.

  2. Explore and fix

    Read the errors, repair, browse the tree, run a query.

  3. Copy or download

    Formatted, minified, YAML, CSV, XML or TypeScript.

Frequently asked questions

Is JSONForge free?

Yes. It's completely free, with no account, no limits on use and no watermarks or paywalls.

Is my JSON uploaded to a server?

No. Parsing, formatting and conversion run entirely in your browser. Your data never leaves your device; the app only keeps your last document in this browser so it's there when you come back.

Is there a file size limit?

There's no fixed limit: it depends on your device's memory. Files of tens of megabytes work well; the tree and table load large arrays in pages so the page stays fast.

What does "Repair" fix?

Comments, trailing commas, single-quoted strings, unquoted keys, missing commas, Python True/False/None, NaN and Infinity, hex numbers, a BOM and several JSON values in a row (JSON Lines), which are wrapped in an array.

Which JSONPath syntax is supported?

Dot and bracket notation, wildcards (*), recursive descent (..), indexes, negative indexes, slices [start:end:step], unions and filters with ==, !=, <, >, <=, >=, =~ regex, && and ||.

Can I convert JSON to CSV, YAML or TypeScript?

Yes. Choose the output format in the app and copy it or download it: formatted or minified JSON, YAML, CSV (nested objects become dotted columns), XML or TypeScript interfaces.