Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

There any number of good GUI diff-tools for windows (I use Araxis Merge, and kDiff3), but none of them (that I can find) will apply a patch file. I would expect it to work like this: I open a base file and a patch in a tool. I should get a diff view with the base file on the left and what that file would look like with the patch applied on the right. Then I can save the result file somewhere (possibly after cleaning up conflicts).

This seemed like such an obvious thing that I was shocked that my existing tools did not do it. Does this feature exist somewhere (for windows?)

share|improve this question
up vote 2 down vote accepted

I agree that it's pretty bizarre that so few of the existing GUI diff programs can create or apply patches, I'm not aware of a single one that can do both.

TortoiseMerge can apply unified diffs though. It's a standalone program that comes as part of TortoiseSvn or if you don't want the whole Svn package you can get TortoiseDiff and TortoiseMerge alone from here.

It's a bit fiddly to use. Launch it and select 'Unified Diff' it then wants a path to a patch file and a directory path where it expects to find the file to be patched (I think this is because it expects to operate on versioned files). Then it opens the main view showing the file to be patched in an odd little window and you have to double click on that to see the patch result, which you can then save to the original file or a new one.

Or you can launch it from the command line like this:

C:\Users\Bob\>tortoisemerge /mine:file1.txt /diff:patch2.diff /patchpath:"C:\Users\Bob"

Which should make it easy enough to launch from a batch file or shell extension.

share|improve this answer
For me it keeps trying to fetch the revision of the file and then fails. – DanMan Oct 7 '13 at 8:57

You can use this Win32 native port of the patch utility. It comes with a bigger selection of other utilities, and in contrast to cygwin and similar it does not need any DLLs. Just pick your tiny executable of choice and store it wherever you want.


patch.exe -i [filename]

To get help:

patch.exe --help
share|improve this answer

WinMerge has a create patch function and works well in Windows.

share|improve this answer
@music2myearc But does it APPLY a patch to a file? – Matthew Scouten Apr 2 '11 at 20:22
I have not tried as I've never needed that functionality and don't know much about it. WinMerge is free (open source) and a small download so it wouldn't be too hard to figure out if it works as you need. – music2myear Apr 3 '11 at 2:27
No, it does not. – Matthew Scouten Apr 4 '11 at 1:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.