ToolForFree

JSON Formatter

Format, repair, query, and compare JSON in a two-panel editor that runs in your browser.

Left panel

Empty

Right panel

Empty

How to use JSON Formatter

  1. Paste, type, or open a JSON or CSV file in either panel.
  2. Use Format, Compact, Repair, or Sort, or switch a panel to Tree view to edit values.
  3. Copy between panels, run a query, or compare them, then copy or download the result.

Frequently asked questions

The status line under the panel shows the error with its line and column, and the line is marked in the editor. Select Repair to fix common mistakes automatically.

Features

Two editable panels with Text and Tree views; format with 2 spaces, 4 spaces, or tabs; compact; repair broken JSON; sort keys; JMESPath queries; compare panels; CSV to JSON; search and replace with undo; optional saving in this browser.

Input
Pasted text, or .json, .csv, and .txt files up to 10 MB
Output
Formatted, compact, or repaired JSON (.json download)

Try an example

{name: 'Tool', free: True,}

Paste this broken JSON into a panel and select Repair.

Limitations

  • Files larger than 10 MB cannot be opened, and very large documents make the editor slow.
  • Repair fixes common mistakes but cannot guess missing data, so check the result.
  • If an object repeats a key, only the last value is kept when formatting.
  • Saved JSON stays in this browser only and is lost if you clear site data; very large JSON may not fit.