JSON-prettify

    Compare JSON

    See exactly what changed between two JSON documents.

    Original JSON

    Modified JSON

    How to compare JSON

    1. Paste the original JSON on the left and the modified JSON on the right.
    2. The differences appear below as you type.
    3. Each row shows the path of a value, such as users[2].email, and whether it was added, removed, changed or moved.

    Frequently asked questions

    Does key order matter?

    No. Objects are compared by key, so the same keys in a different order count as equal. Array order does matter; items that only changed position are shown as moved.

    How are array items matched?

    Items with an id or _id field are matched by that value, so reordering shows up as a move. Other items are compared by position.

    Can I compare invalid JSON?

    Yes. Both sides are repaired the same way as in the formatter (trailing commas, missing brackets, single quotes and more), and a note tells you when that happened.

    Are 1.0 and 1 different?

    No. Numbers are compared by value, so 1.0, 1 and 1e0 are equal. Very large numbers are compared digit by digit, so two 64-bit IDs that differ only in the last digit are reported as changed.

    Is my data uploaded?

    No. The comparison runs entirely in your browser; nothing is sent to a server.