WinMerge Basics: Spot Every Difference, Merge in Seconds
Compare files and folders side by side, copy changes across with one shortcut, filter out the junk and launch it from Explorer.
Two files called notes_final.txt and notes_final_REALLY.txt are annoying enough. Now picture two copies of the same config file, or two backup folders of your photos, and nobody knows which one is newer. Eyeballing that line by line is how mistakes happen. WinMerge, a free and open-source compare tool for Windows, puts both versions side by side, colors every difference and lets you copy changes from one side to the other with a keystroke.
This guide covers the five jobs you'll actually use it for: comparing text files, merging changes, comparing whole folders, filtering out the noise and launching it straight from File Explorer. UpdateStar currently lists WinMerge 2.16.60.
Job 1: Compare two text files
Start WinMerge from the Start menu or press Win+R and type winmerge. Then open the selection dialog with File > Open or Ctrl+O.
- Put the first file in 1st File or Folder and the second in 2nd File or Folder. Type the paths, click Browse..., pick a recent path from the drop-down, or simply drag the files into the fields.
- Tick Read-only next to a file you want to protect from accidental edits.
- Click Compare.
The File Compare window shows both files in two panes. Lines that differ are highlighted, gold by default. One or more consecutive changed lines form one "difference", and WinMerge works with these blocks, not single lines. Below the panes, the Diff Pane shows the selected difference on its own, with the changed words marked inside the line.
Two versions of a source file side by side. The marked lines are one difference, shown again in the Diff Pane below.
One thing confuses everybody at first: WinMerge inserts empty placeholder lines so that matching lines always sit at the same height on both sides. Those gray gaps aren't in your file. They just keep the panes aligned.
Job 2: Merge changes from one side to the other
Merging means copying a whole difference block across. These shortcuts do most of the work:
- Alt+Down jumps to the next difference, Alt+Up to the previous one.
- Alt+Right copies the current difference from the left side to the right.
- Alt+Left copies it from the right side to the left.
- Ctrl+Alt+Right or Ctrl+Alt+Left copies and jumps straight to the next difference, perfect for long reviews.
- Ctrl+Z undoes the last change if you copied in the wrong direction.
You can also type directly in the active pane (the one with the darker header). An asterisk in front of the file name means unsaved changes, so save with Ctrl+S when you're happy. If Automatic rescan is turned off in the options, press F5 after editing to refresh the differences.
Merging a lot? File > Merge Mode (or F9) lets you drop the Alt key: plain arrow keys then jump between differences and copy them. Merge appears in the status bar while the mode is on.
Job 3: Compare whole folders
Folder compares work the same way. In the selection dialog, pick two folders instead of two files. Leave Include Subfolders ticked if WinMerge should dig through every subfolder and show all results in one list. Untick it to compare only the top level and browse into subfolders one at a time.
The Folder Compare window lists every file with a Comparison result column. WinMerge doesn't label one side "original" and the other "changed". A file that exists on only one side is simply marked as unique to that side.
- Double-click a row (or press Enter) to open the two files in a File Compare window.
- Use the up arrow at the top of the Filename column, or Backspace, to go back to the parent folder.
- To make both sides match, select rows and use Merge > Copy to Right or Merge > Copy to Left. WinMerge shows a confirmation with the source and target paths before it copies anything.
- In the folder list, Alt+Down and Alt+Up jump between different files, and Alt+Right or Alt+Left copy the selected items.
Compare the same two folders every week? Save the setup with File > Save Project and reopen it later with File > Open Project.
Job 4: Filter out the noise
Big folder compares drown in files you don't care about: build output, caches, version control folders. The Folder: Filter field in the selection dialog fixes that.
The filter field and the subfolder option in the selection dialog.
- Type file masks to include only certain types, separated by semicolons, for example *.txt;*.ini;*.xml.
- Put an exclamation mark in front to exclude folders. !.git\;!.vs\ skips those two folders entirely.
- For bigger rule sets, click Select... next to the field and pick one of the filter files that come with WinMerge, or one you wrote yourself.
Inside text files, two options cut false alarms. In Edit > Options, the Compare page has Ignore blank lines and whitespace settings, so extra spaces or empty lines stop counting as differences. For recurring junk like timestamps in log files, open Tools > Filters and use the Line Filters tab to add a regular expression for lines WinMerge should ignore. After changing filters in an open compare, press F5 to see the new result.
Job 5: Compare straight from File Explorer
Skip the dialog entirely with the Explorer integration. If you didn't enable it during setup, open Edit > Options, go to the Shell Integration page and turn on Add to context menu.
Select two files, right-click, choose WinMerge.
Now select two files or two folders in Explorer, right-click and choose WinMerge. The sort order in Explorer decides which one lands on the left.
Files in different folders? Turn on Enable advanced menu on the same options page. Right-click the first file and choose Compare To, browse to the second one, right-click it and choose Compare. Picked the wrong first file? Re-select First replaces it.
If WinMerge doesn't behave
The Compare button is grayed out? You probably mixed a file and a folder, or one path doesn't exist. Check the status message at the bottom of the dialog. Want to compare Word documents? WinMerge can't read them as text on its own, but the Unpacker field in the selection dialog can apply a plugin that extracts the text first.
Our verdict
WinMerge is the tool you didn't know you needed until two versions of something collide. It pays off for anyone who edits config files, keeps folder backups or reviews code, and it costs nothing. Do this today: enable Add to context menu, so the next comparison is just a right-click away.


