Three-Way Merge Resolver

Merge base, left and right text versions while preserving independent changes and exposing overlapping conflicts.

On-device No sign-up Free to use

Merge three versions controls

Showing an example. Edit to see your own.

?

Use conflict,choice headers and the complete conflict ID from the report, then left, right or base. IDs include an input hash; stale choices are refused.

Processed in your browser. Your inputs stay on this device.

Result

Showing an example.

Merge independent edits and review overlapping line conflicts.

Base red/green/blue, left RED/green/blue and right red/green/BLUE merge into RED/green/BLUE with zero conflicts, retaining the final newline.

Loading the tool. Your result will appear here.

https://usefreetools.net/three-way-merge-resolver · 20 November 2026

Was this helpful?

How to use Three-Way Merge Resolver

  1. Paste the common base and the left and right versions derived from it.
  2. Run the merge and inspect any LEFT, BASE and RIGHT conflict blocks. Independent edits are kept automatically.
  3. To resolve a conflict, use the CSV headers conflict,choice. Copy the complete conflict ID from the report into its first column and enter left, right or base in the second. Keep the three input texts unchanged.
  4. Run again to apply the reviewed choices. Download merged.txt when resolved, or merged-with-conflicts.txt when markers remain, and inspect the text before replacing a file.

Example: Three-Way Merge Resolver

Merge independent edits and review overlapping line conflicts.

You add
Common base: red green blue Left version: RED green blue Right version: red green BLUE
You get
Base red/green/blue, left RED/green/blue and right red/green/BLUE merge into RED/green/BLUE with zero conflicts, retaining the final newline.

Supported inputs and limits

  • Each version is limited to 256 KiB and 2,000 lines.
  • Difference search is bounded by 800 changed lines and a 250 ms per-side diff timeout; at most 400 edit regions are merged.
  • Independent line edits are retained.
  • Overlapping unequal edits remain visible until reviewed.
  • The merge is line-based, not syntax-aware, and does not prove that a merged program compiles.
More details

Empty versions and CRLF bytes are supported.

Conflict IDs apply only to unchanged inputs.

Where your input is processed

This tool does not upload your inputs. See the limits for anything saved on your device.

Questions about Three-Way Merge Resolver

What is the common base for?

It lets the merge distinguish a change made on only one side from an overlapping edit made on both sides. Comparing left and right alone cannot make that distinction.

Will the tool silently choose one conflicting side?

An unresolved conflict is exported with visible LEFT, BASE and RIGHT markers. Enter a reviewed conflict choice only when you have decided which text to retain.

Can I merge source code safely?

The output is text. Independent line changes can combine into syntactically invalid or semantically inconsistent code, so run the appropriate compiler and tests afterward.

Page updated · Project managed by Tony Hines · Report a problem with Three-Way Merge Resolver