Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Facebook Twitter Instagram
Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Tech News Today
Home»Tips & Tricks»6 Ways How to Compare Files on Your PC

6 Ways How to Compare Files on Your PC

Deep ShresthaBy Deep ShresthaAugust 30, 2022
compare two files

Comparing two large files is impossible if you just see through their content. You can do this for files that have a couple of lines of content inside it. However, comparing two files with hundreds of lines side by side can be a hectic process.

One simple way to see if the two files are similar is by checking its file size. However, by doing this, you cannot compare the contents inside the file. This is where file comparing applications come in.

Whether you want to track changes made to a document or check documents for data loss, the file comparison application is the tool for you. Below in the article, we have listed a few ways to compare files. So without further delay, let us get right into it.

Table of Contents

  • How to Compare Files?
    • Using VS code
    • WinMerge
    • Compare Files Using Metadata
    • Using Notepad++
    • Using Command Line 
    • Compare Microsoft Word Files

How to Compare Files?

Here, we have listed seven tools and applications you can use to compare two files. These tools follow a specific algorithm that compares the two files simultaneously. Once the comparison process is complete, it provides you with a detailed report on any found differences.

Now let us look at a few ways you can compare two files.

Using VS code

VS Code or Visual Studio Code is a free source code editor for Windows, Mac, and Linux. Although it is not a comparing application, there is a feature in VS code that lets you compare .txt files. You can compare any file that the VS code and read.

If VS code cannot read the file that you want to compare, you can also download an extension to read the file. Once VS code and read the file, you can compare them by following the steps below.

  1. Download VS code.
  2. Install and run the application.
  3. On the top of the window, click on File.
  4. Click on Open File. 
    open file
  5. Browse and select the two files you want to compare.
  6. You can see the files that you opened on the left panel.
  7. Select the two files from the left panel by holding the shift key.
  8. Right-click on the file and select Compare selected.
    compare using vscode
  9. The two files will now open side by side, highlighting the parts that are different from one another.

WinMerge

WinMerge is an open-source application that you can use to compare both files and folders. The application works just like the application mentioned above. You browse the two files you want to compare, and the application gives you a report highlighting changes between the two files.

One feature that WinMerge has that makes it stand out from its competitors is that it can compare three files simultaneously. Besides this, it can also compare image files. However, below we have only explained the process of comparing two files.

  1. Download WinMerge from their official website.
  2. Install and open the application.
  3. Press Ctrl + O to open browse menu. 
  4. Here, under 1st File or Folder, click on Browse and select the first file.
  5. Under 2nd File or Folder, click on Browse and select the second file. If you want, you can also browse the third file for comparison.
  6. Click on Compare.
    compare using winmerge
  7. Another tab should open, highlighting the difference between the two files.

Compare Files Using Metadata

Metadata refers to the properties of the file. These properties include file location, type, size, size on disk, created date, modified date, and last accessed data. Although you cannot compare the actual content inside the file, using the file size and its size on disk, you can check if the two files are the same.

To compare a file’s metadata,

  1. Right-click on the first file and click on properties.
  2. Again, right-click on the second file separately, and select Properties.
    File
  3. In General tab, you can see the Size and Size on disk. Files that are the exact copy of one another will most likely have the same size.
    compare using file properties
  4. Go to the Details tab if you want to compare the file owner and attributes.

Using Notepad++

Similar to using VS Code to compare two files, Notepad++ also does the same thing. However, you will need to install a separate plugin to compare two files. However, the application cannot compare docs or image file.

Follow the steps mentioned below to compare files using Notepad++.

  1. Download Notepad from their official website.
  2. Install and run the application.
  3. Click on Plugins and select Plugins Admin.
    open plugin admin
  4. Type Compare and Click on Next.
  5. Check on the Compare plugin and click on Install. The application will now close and install the plugin.
    install compare plugin
  6. Once the installation process is complete, open the two file in Notepad++.
  7. Press Ctrl + Alt + C simultaneously. Both the files will now open side by side highlighting the changes in the two files.
    compare two file in notepad

Using Command Line 

For Windows, the command fc lets you determine the changes between the two files. However, the command only lets you compare files in the same directory. If you want to know the differences between the two files, this is the method you want to follow.

  1. Copy and paste the two files into C drive.
  2. Press the Windows + R key to open Run.
  3. Type cmd and press enter to open Command Prompt.
  4. Type cd <File location path> and press Enter.
    Replace <File Location path> with the location of the two files. Example: cd C:\Program Files
  5. Type fc <filename1>.txt <filename2>.txt. Replace <filename1> and <filename2> with the two filenames. Example fc a.txt g.txt
  6. Press Enter. 
  7. The Command Prompt will now display the differences in both files. 
    compare using command

Compare Microsoft Word Files

If you have files in Microsoft Word that you want to compare, you can use its built-in feature to compare the two docs files. Microsoft Word compares the two files and creates a new word document, giving you a detailed report.

To compare word files,

  1. Open any one of the Docx files. 
  2. Go to the Review tab.
    review
  3. Click on the drop-down menu on Compare and select Compare.
  4. Under Original document, click on the folder icon and select one of the files you want to compare.
  5. Under the Revised document, click on the folder icon and select the second file.
    compare doc file
  6. Click on OK.
  7. A new word document will open, giving you a detailed report highlighting the differences.
how-to
Deep Shrestha
  • Twitter
  • LinkedIn

Deep Shrestha works as a computer hardware writer at TechNewsToday with several hardware and programming certifications. Although he has been writing technical content for more than a year, his interest in hardware components started at a very young age ever since he heard about PC building. Pursuing his passion, he has assembled several desktop computers. Besides building desktop PCs, Deep also has hands-on experience fixing software and hardware issues on laptops and desktop computers. Using all this knowledge and skills about computer hardware, he's on a quest to make content that's easy to read and understand for everyone. You can contact him at deep@technewstoday.com

Related Posts

partial screenshot windows

How to Take a Partial Screenshot on Windows?

December 12, 2022
how to copy text from a picture

How to Copy Text from a Picture

December 8, 2022
how-to-open-cfg-file

How to Open CFG File in Windows and macOS

December 4, 2022
map keyboard to controller

How to Map Keyboard to Controller?

November 30, 2022
how-to-add-books-to-kindle

How to Add Books to Kindle

November 28, 2022
how-to-find-hidden-cameras-using-mobile-phones

How to Find Hidden Cameras Using Mobile Phones

November 18, 2022
Add A Comment

Leave A Reply Cancel Reply

Latest Posts
Memory-Compression

What is Memory Compression in Windows? Should You Enable or Disable It

March 1, 2023
dism-vs-sfc-vs-chdsk

DISM, SFC, CHKDSK: What’s the Difference

February 28, 2023
bios-settings-for-gaming

Best BIOS Settings for Gaming

February 16, 2023
You may also like
how-to-clean-hp-printer-rollers

How to Clean HP Printer Rollers

March 3, 2023
keyboard input lag

9 Ways to Fix Keyboard Input Lag

March 3, 2023
keyboard key is stuck

How to Fix a Stuck Key on a Keyboard

March 3, 2023
Recommended
Cookie Clicker Garden Guide

Cookie Clicker Garden Guide to Unlocking Every Seed

September 26, 2021
monitor no signal

Computer Turns On But Monitor Says No Signal (9 Ways To Fix)

November 10, 2022
Facebook Twitter Pinterest
  • Home
  • About Us
  • Our Team
  • Editorial Guidelines
  • Privacy Policy
  • Affiliate Disclosure
© 2023 TechNewsToday, editor@technewstoday.com | Tech Central Pvt. Ltd.

Type above and press Enter to search. Press Esc to cancel.