1. Input Two JSON Arrays

File A (Base Data)

File B (Comparison Data)

Comparison Settings:

Leave blank for full deep comparison (best).

About the Two File Merge & Compare Tool

This tool allows you to perform set operations on two separate JSON arrays (File A and File B). It uses a powerful hashing algorithm for deep comparison, identifying identical records even if keys are in different orders.

How to Use the Merge Tool

  1. Input Data: Upload or paste the JSON array content into the "File A (Base Data)" and "File B (Comparison Data)" fields.
  2. Configure: Optionally, specify a "Key Field" (e.g., id) to match records only by that value instead of a deep comparison. Check "Loose Match" for lenient type checking.
  3. Process: Click the "Merge & Compare Files" button. The tool runs locally in your browser.
  4. Analyze Results: Review the four output sections: Union, Intersection, A Unique, and B Unique. The stats bar provides record counts for quick analysis.
  5. Export: Use the buttons below the output to "Copy Merged Union JSON" to your clipboard or "Download Merged JSON" as a file.

Key Features:

  • Union (A + B): The complete list of all unique records from both files, with duplicates removed. This is your final merged file.
  • Intersection (A ∩ B): Records found in both File A and File B (the common duplicates).
  • A Unique (A \ B): Records found only in File A.
  • B Unique (B \ A): Records found only in File B.
  • Key Field Support: Use an optional key (e.g., id) to compare records based solely on that specific field's value instead of the entire object structure.

Client-Side Processing: All file processing is done locally in your browser. Your data is never sent to any server, ensuring complete privacy and fast results.