JSON and YAML Diff Highlighter
Compare JSON or YAML configurations locally. Highlight changes by JSON Pointer, keep exact numeric values, and export a structured report.
Compare Parsed JSON and YAML by Path
JSON and YAML Diff Highlighter: how to use it
- Paste or open UTF-8 files for the baseline and target. Choose a format for each document or keep Auto-detect.
- Select Compare configurations. To ignore order and repeated values in primitive arrays, turn on Treat primitive arrays as sets.
- Filter the reported paths by result and compare the values. Select Download JSON report to keep the complete comparison.
Limits and notes
One JSON or YAML 1.2 Core document with string mapping keys per side and up to 100,000 input characters each. Supports up to 10,000 reported paths. Object key order is ignored. Arrays use positional comparison unless the primitive set option applies.
How your privacy works →JSON and YAML Diff Highlighter: common questions
Can I compare a YAML file with a JSON file?
Yes. Each input has its own format. The comparison uses the parsed structure and types, so equivalent JSON and YAML can have no changed paths.
Does the difference report consider 1 and 1.0 equal?
Yes. It compares decimal values without rounding them to JavaScript floating-point numbers. A quoted string such as "1" retains its own type.
What does /a~1b/~0draft mean in a path?
JSON Pointer uses ~1 for a slash in the key and ~0 for a tilde. That path addresses the key ~draft inside the key a/b.