Best Free File Comparison Utility

A file comparison utility helps you visually compare and merge the differences between two (or more) different versions of the same file, or detect the variations between two different sets of data.  These types of utilities are often called "Diff" programs.  Hundreds of different types of file comparison utilities exist, each tailored for specific types of data and file formats.

If you are looking to compare plain text files such as code or binary files many different free choices exist.  One of the best is WinMerge.  It only runs on a Windows based system, but it can handle DOS, UNIX, and MAC, text file formats.  A version of WinMerge called WinMergU also supports Unicode.  WinMerge can integrate with Windows Explorer and will compare two corresponding groups of text files, and tell you which are identical and which have differences.  It will also compare two individual files and like most diff utilities it shows the files being compared in two vertical panes and highlights the differences, allowing you to merge or ignore the changes.  While WinMerge is an excellent text file comparison utility it will not work with word processor or spreadsheet type documents because they include special formatting and markup.  For these types of files you need a comparison program that is especially designed to support their formatting.  Unfortunately virtually all of these come with an exorbitant price tag, which puts them out of the reach of most users.

Another good product is KDiff3.  It is similar to WinMerge with many of the same features, but also supports other operating systems including GNU/Linux, Unix, and Mac OSX.

WinMerge
Website: http://winmerge.org
Download link: http://winmerge.org/downloads/index.php    
Current version: 2.6.14
Version date: January 17th 2008
License: Freeware
Download File Size: 2.9 MB
Operating Systems Supported: MS Windows (95/98/NT/2000/XP/Limited Vista support)
Additional Software Required:  7-Zip Plug-in (for archive support)   
64 Bit Capable: Limited 64-bit support
Portable Version Available: No

KDiff3
Website: http://kdiff3.sourceforge.net
Download link: http://sourceforge.net/project/showfiles.php?group_id=58666
Current version: 0.9.92
Version date: April 15th 2007
License: Freeware
Download File Size: 7MB
Operating Systems Supported: MS Windows, GNU/Linux with KDE3,Unix, Mac OSX
Additional Software Required:  none   
64 Bit Capable: unverified
Portable Version Available: No


This software category is maintained by volunteer editor Paul Lawrence.

5
Average: 5 (3 votes)
Your rating: None

The best free file comparison tool that I have ever used is
CSDiff. I used it to compare file only since it is excellent to spot every single difference. It uses only one pane to display the differences, thus making it very easy to check them in the context of the surrounding code. For a programmer it is a must. Additional PLUS - it can compare content of two MS Word documents!
http://www.componentsoftware.com/products/csdiff/index.htm

Another good one is ExamDiff. It is very light and easy to use, showing files in separate panes, but spaces lines in a way that allows you to easily see the common parts.
http://www.prestosoft.com/ps.asp?page=edp_examdiff

Tomasz

While WinMerge is an excellent text file comparison utility it will not work with word processor or spreadsheet type documents because they include special formatting and markup. For these types of files you need a comparison program that is especially designed to support their formatting. Unfortunately virtually all of these come with an exorbitant price tag, which puts them out of the reach of most users.

As this is no reason to keep them in secrecy, may we know some names at least?

Diffuse (http://diffuse.sourceforge.net/) is another excellent file comparison tool. Great for merging and reviewing changes to code.

What about TextDiff which also supports folder comparison http://www.angusj.com/delphi/textdiff.html

Hello
I'm searching for a tool/app for comparing files with the same name and different file type by date.

Smth.fmb (date) <-> Smth.fmx (date)

Total Commander has this option, but it only works if the files are in the same folder.
Has anyone found something like that?
I.B.

DIRECTORY COMPARISON
Any of these that can compare directories without comparing each file byte by byte?

TreeComp is the best directory comparison tool I've ever used. It's free and requires no install.

As far as I know, there are none that are free.
Beyond compare (not free) does have option to compare directories without comparing each file byte by byte.
This is a sorely lacking feature in Winmerge. Also lacking is support for exclusions (for example, exclude folders and files from the diff)

WinMerge does have it. In the options menu, under Compare, there is a File Compare method, which has options for full contents, quick contents, modified date, size, and modified date & size.

WinMerge is now at version 2.10.x and has an officially endorsed portable build at PortableApps.com here. It is open source (GNU GPL) and in active development.

Notepad++ has an excellent diff plug-in, installed by default.

Excellent tool for compare. It is very smart and highlights exactly what's wrong. Default color scheme is intuitive.

However, it ran into an unexpected error on a large text file: 8 meg 62203 records. So there might be a limit. very good for smaller text files.

I too used DiffMerge and it is ultra cool

Another free utility which I've been using since it was introduced in June 2007 is SourceGear DiffMerge, which is available here. DiffMerge runs on Linux, Mac, and Windows, and can perform folder comparisons in addition to file comparisons. I'm not familiar with WinMerge and KDiff3, so I don't know how the features compare, but here are some of the DiffMerge features that I like:

  1. A narrow overview map on the left side, which indicates how many differences there are, the approximate location of the differences in the file, and the map can be used to navigate within the files.
  2. It can be configured to highlight just the differences within a line, rather than highlighting the entire line.
  3. Changes to comments use different coloring from changes to other text, making it easier to spot changes to source code that will have an impact.
  4. You can setup different rulesets for different file extensions, with the ability to define what constitutes a comment for each file type.

Mike Potjer

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <b> <address> <blockquote> <br> <caption> <center> <code> <dd> <del> <div> <dl> <dt> <em> <font> <h2> <h3> <h4> <h5> <h6> <hr> <i> <img> <li> <ol> <p> <pre> <span> <strong> <sub> <sup> <table> <tbody> <td> <tfoot> <th> <thead> <tr> <u> <ul> <tr>
  • Lines and paragraphs break automatically.
  • [node:123] - insert full text (themed by theme('node'))
    [node:123 body] - insert node's body
    [node:123 teaser] - insert node's teaser
    [node:123 link] - insert link to node
    [node:123 collapsed] - insert collapsed node's body
  • You may use [view:viewname] tags to display listings of nodes.

More information about formatting options