Skip to content

Free JSON prettifier, validator and minifier

Make JSON readable, find what’s wrong with it, compare two versions, or shrink it to one line. Paste JSON, or open or drop a file or a whole folder: every change is checked with the exact line and column of any error, and an editable tree lets you open objects and arrays and change keys and values in place. Everything runs in your browser.

How to use

  1. Paste, open or drop JSON

    The page opens with an example. Paste your own JSON, choose a folder or file, or drop one onto the Preview. A folder lists all its JSON files. Files up to 50 MB are read on your device.

  2. Edit, minify and check

    In Edit mode the JSON shows as an editable, coloured tree or as plain text, prettified with 2 spaces, 4 spaces or tabs; Minify puts it on one line. Sort keys A–Z orders object keys. The check box confirms valid JSON or names the line and column of the first error, and Go to error jumps there.

  3. Compare, find and save

    Compare lists every difference between JSON A and B. Find searches keys and values. Save an opened file straight back, Save a copy as a new file, or copy the result.

Example

Paste {"id":12345678901234567890,"tags":["a","b",]} and the check reports the trailing comma on line 1. Remove it and the tree appears, with the JSON spread over lines with 2-space indents, and the id keeps all 20 digits instead of being rounded.

Good to know

Formatting changes only spaces and line breaks, so numbers, escapes and key order stay as written unless you sort keys. JSON with comments, single quotes or trailing commas is reported as an error with an explanation. Nothing is uploaded.

Prettify, check and explore JSON

The page opens with an example to try. Paste your own JSON, drop a .json file or a whole folder onto the Preview, or choose one, and it is formatted at once. A file you opened can be saved straight back to your computer. Choose Edit or Compare at the top, under JSON Prettifier. In Edit, View shows the JSON as a Tree, as Plain text (prettified with 2 spaces, 4 spaces or tabs) or Minified on one line, all coloured the same way; Sort keys A–Z orders object keys at every level. The line at the bottom checks every change and names the exact line and column of an error. The JSON opens as an editable tree: double-click a key or value to change it, add, drag or delete rows, and undo any edit. The find bar searches keys and values, and a copy icon appears next to the rows you select. Compare shows two JSON documents side by side and lists every difference. Save the file, save a copy, or copy the result. Everything runs in your browser; nothing is uploaded.

Your privacy

Free, with no sign-up. File processing stays on your device; website analytics and advertising have separate privacy choices.