Compare and Merge Your Source Code

Code Compare is a free compare tool designed to compare and merge differing files and folders. Code Compare integrates with all popular source control systems: TFS, SVN, Git, Mercurial, and Perforce. Code Compare is shipped both as a standalone file diff tool and a Visual Studio extension.

Code Compare wins bronze at Visual Studio Magazine 2019 Readers' Choice Awards!

Text Comparison and Merging

  • Colored blocks for inserted, deleted, and modified text
  • Detailed highlighting of changes within lines
  • Collapsing of unchanged text regions (Pro-feature)
  • Point-and-click merge with a mouse
  • Editing files on the fly
  • Merging shortcuts for advanced users

More on file comparison

Text Comparison

Semantic Source Code Comparison

  • Structure comparison mode
  • Lexical comparison from major programming languages – C#, C++, Visual Basic, JavaScript, Java, XML
  • Syntax highlighting for programming languages
  • Matching methods in compared source code files
  • Similar lines of code are matched even after refactoring
  • Detecting moved blocks of code if source code is reordered in files
  • Displaying changes in code structure in Difference Explorer
  • Code outlining for collapsing and expanding regions of code

More on comparing source code

Semantic Code Comparison

Folder –°omparison

  • Advanced diff directories compare utility
  • Color-coding for added, deleted, and modified files
  • Filtering options for excluding or including certain file types
  • Instant opening of individual file comparison documents
  • Display options for better comparison result analysis
  • Batch file copying from pane to pane or to a selected folder

More on folder comparison

Folder Comparison

Visual Studio Integration

  • Compare code without leaving your favourite environment
  • Native Visual studio extension for smooth integration
  • Visual Studio 2010, 2012, 2013, 2015, 2017, and 2019 supported
  • Choose to use standalone or integrated Code Compare on the fly
  • Link Code Compare to Android Studio as an external tool to compare and merge

More on Visual Studio integration

Integration with Visual Studio 2012

Version –°ontrol Integration

  • Colored blocks for inserted, deleted, and modified text
  • Integrates with version control systems as the merging tool for conflicting file revisions
  • Non-conflicting changes are merged automatically
  • Merging conflicts are highlighted
  • One-click conflict resolution with a mouse button
  • Three-way comparison to compare and merge three files side-by-side

More on VCS integrations

Version control integration

What people say about our product

Martin L. Shoemaker
This is a very powerful tool, and it integrates well with Visual Studio. The more I use it, the more flexible I find it to be. It lets me edit the code on the fly in the difference window, and even set breakpoints. It's phenomenally better than the native diff in Visual Studio.
Alex Boesel
Best code diffing tool I've ever used. Ability to edit the current version directly in the tool is great both for easy reversal of changes as well as for formatting, as is the case when diffing poorly formatted code (e.g. single line XML documents).
Andrey Langovoy
It's really a must-have tool for any developer. It can be integrated into many places as a third-party compare tool: SVN clients, Git clients, TFS explorer, Windows Explorer, project solution etc., which is quite useful!

Code Review Support & Related Products

Get more productivity tools that can simplify your code development process and help you elaborate top-quality software.

Review Assistant

A peer code review tool for Visual Studio, Review Assistant includes lightweight support for formal code review, allows defect and discussion tracking.

Code Review Bundle

Code Compare adds value to Review Assistant when tools are used together. That's why they are shipped integrally in the Code Review Bundle.

Discount Programs