Lines: 0 Columns: 0 Selection: 0 chars
Lines: 0 Columns: 0 Selection: 0 chars
Features
  • 4 Format Support: Compare Plain Text, JSON, YAML, or XML documents.
  • Auto Format Detection: Automatically detects format by analyzing content.
  • Visual Comparison: Uses Monaco Diff Editor to clearly display differences.
  • Normalized Comparison: For JSON/YAML/XML, only meaningful differences are shown.
  • File Support: Upload files to compare them.
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.
Diff Rules
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.