JSON Viewer and Diff
Format, validate and repair JSON, explore it as a tree, and compare two documents to see exactly what changed. Runs in your browser; nothing is uploaded.
Tap a key to copy its path.
Tap to insert at the cursor:
A value that is only a placeholder keeps its type, so "{{int 1 100}}" becomes the number 42. Text around it makes a string. Put "{{repeat 1 4}}" first in an array, followed by one item, to repeat it. Name, email and username in one record share the same made-up person. It does not use your JSON on the left, unless you press “Build from my JSON”.
Related tools
Questions
Is my JSON sent anywhere?
No. It is processed in this browser tab and is not uploaded or saved.
Can it fix broken JSON?
Yes. Use Try to repair: it lists each change it made, and you choose whether to use the repaired JSON.
What counts as a difference?
On the Compare tab, each added, removed or changed value is listed with its path. Key order is ignored, and you can ignore array order too.