JSON Compare
Put two JSON files side by side and see every added, removed and changed value.
How JSON Compare works
Compares two JSON documents and shows the differences side by side. Both sides are formatted the same way before the compare. So changes in spaces, indents or line breaks do not count as differences.
Each side is checked as you type. The Compare JSON button works when both sides are valid JSON.
Input to JSON Compare
- Original JSON: paste the first version into the left box, or upload a .json or .txt file.
- Modified JSON: paste the second version into the right box, or upload a file.
- Click Swap JSON to switch the two sides. Use the format button on each side to tidy the JSON before you compare.
- Key order matters. If the same keys are in a different order, sort both sides with JSON Sorter first.
Output from JSON Compare
- Original on the left and Modified on the right, with line numbers. Removed lines are marked with - and added lines with +.
- A changed value shows as one removed line and one added line.
- The header counts added and removed lines. If nothing changed, you see a message that both sides are the same.
- Click Edit JSON to go back and change the input. Everything runs in your browser.