Online tool to visually compare differences between two text, JSON, YAML, or XML documents.

Format
Lines: 0 Columns: 0 Selection: 0 chars
Lines: 0 Columns: 0 Selection: 0 chars

Usage

  • Enter documents to compare in Input 1 and Input 2, or upload files.
  • Format is automatically detected, but you can manually select using radio buttons.
  • Click the "Diff" button to compare the two documents.
  • View added/deleted/modified parts in colors in the Diff area.
  • Comparison results are displayed in the top Alert, showing whether they are identical and the number of differences.
  • JSON/YAML/XML formats are normalized before comparison, so order or format differences are ignored.

Input, output, limits

Input is two documents (paste or file). Output is a Monaco Diff view plus a difference count. JSON/YAML/XML are normalized first. Nothing is uploaded.

Example

Input 1: {"a":1} / Input 2: {"a":2} → Diff highlights the changed value. JSON that only differs in key order is treated as identical.

JSON

  • Key Order: Object key order is ignored when comparing.
  • Whitespace: Whitespace and indentation differences are ignored.
  • Array Elements: Intelligently detects addition, deletion, and movement of array elements.
  • Data Type Change: Detects both value and data type changes.

YAML

  • Key Order: Object/map key order is ignored when comparing.
  • Comments: Comment (#) changes are ignored.
  • Style Variation: Style differences (block/flow) are ignored, only final structure is compared.
  • Multiple Documents: Multiple documents (separated by ---) are compared individually.

XML

  • Attribute Order: XML node attribute order is ignored.
  • Whitespace Nodes: Indentation or line break text nodes are ignored.
  • Namespace: Namespace declaration changes are shown as important differences.
  • Comments: Comment changes are ignored.

FAQ

Are files uploaded?
No. Both inputs are compared in the browser only.
Does JSON key order count as a diff?
No. JSON/YAML/XML are normalized so only meaningful changes show.
What about Plain Text?
Line-based text diff. Whitespace and order are compared as-is.