3-Way Diff & Merge Tool
Merge Base, Theirs and Mine versions of a text with a diff3 three-way merge, resolve each conflict by side, and copy or download the result.
3-Way Diff & Merge Tool
Need a simpler 2-way diff?
Use our Diff Checker →Updated . Provided as is. Check the output before you rely on it in production.
How to use 3-Way Diff & Merge Tool
- 1
Input three versions
Provide the original (base) version, your version, and the incoming version. Paste each into its labeled section. The tool highlights changes, conflicts, and matches automatically.
- 2
Identify conflicts
Areas where all three versions differ are marked as conflicts. Blue sections show changes from the base, red shows conflicting edits. Green sections are merged cleanly.
- 3
Resolve conflicts manually
For each conflict, decide whether to keep your changes, accept the incoming changes, or manually combine them. Click through conflicts systematically, reviewing the context in each section.
- 4
Export the result
Once all conflicts are resolved, copy the merged version or download it as a file. Use this for code merges, document updates, or configuration reconciliation across branches.
- 5
Use for non-code merges
This tool is useful beyond git: merge YAML configs, JSON data structures, or documentation where git doesn't handle 3-way merging well.
Questions and answers
What is 3-Way Diff & Merge Tool?
When should I use 3-way merge instead of a regular 2-way diff?
For AI agents: how to call this tool
Machine-readable contract, endpoints and examples. Humans can ignore this section.
Best Path For Builders
Browser workflow
Runs instantly in the browser with private local processing and copy/export-ready output.
Browser Workflow
This tool is optimized for instant in-browser execution with local data handling. Run it here and copy/export the output directly.
/diff-merge-tool/
For automation planning, fetch the canonical contract at /api/tool/diff-merge-tool.json.