These cover why valid-looking JSON fails to parse, what validation does and doesn't check, and what formatting does to your data.
Why does JSON that looks correct fail to parse?
Usually something that looks right but isn't: curly quotes pasted from a document, a byte-order mark at the start of a file, a raw line break or tab inside a string (they have to be written \n and \t), a number with a leading zero or a leading dot (01, .5), or NaN, Infinity and undefined, which JSON doesn't have. The line and column in the error message usually lead you straight to it.
Does it validate against a JSON Schema?
No. Validation here means checking that the text is valid JSON - correct syntax and nothing else. The page doesn't compare fields, types or required keys against a JSON Schema, and it doesn't repair errors. Use a schema validator for that.
What is the difference between JSON and a JavaScript object?
JSON is a text format with stricter rules than a JavaScript object literal: keys must be double-quoted strings, values can't be undefined, functions or NaN, and trailing commas and comments aren't allowed. Output from JSON.stringify() is always valid JSON, but a hand-written object literal often isn't.
Does formatting or minifying change my data?
The structure and values stay the same, but the text is re-created by JSON.stringify, so a few things are normalized. Numbers are read as 64-bit floats: integers above 9,007,199,254,740,991 lose digits, 1.50 becomes 1.5 and 1e2 becomes 100. Duplicate keys collapse to the last value, escapes such as \u00e9 print as the character é, and keys that look like whole numbers move to the front in ascending order. If you need the original text byte for byte, keep it.
Is it safe to paste API keys or private data?
Formatting and validation use JSON.parse and JSON.stringify in your browser, and nothing sends your JSON anywhere. You can check this yourself: open your browser's DevTools Network tab, paste and click Format, and look for a request that contains your text - there won't be one. Even so, a live secret is a secret - use test credentials where you can.
Is there a limit on file size?
The tool sets no limit of its own. The file is read and parsed in your browser's memory, so very large files are limited by your device and browser rather than by the page.
How do I open and view a .json file?
Choose Upload JSON and pick the file, or paste its contents, then press Format - or turn on Auto format to format as soon as it loads. The formatted text is a readable view of the file, and the file is read in your browser and isn't uploaded anywhere.