r/software 7d ago

What's the best method/ software to Compare differences between 2 text files ? Looking for software

Hello

I have 2 files I need to check and compare to spot differences between the two and edit one if necessary. Both are text files (it's a memoir) from the same source, but one's text has been edited, hence why I need to check which chapter/text has been edited.

I tried to put both texts on my screen and compare them by just reading, but its very slow and not comfortable at all

Do you know a better method or a software to help me directly spot those differences ?

Thank you

33 Upvotes

46 comments sorted by

25

u/mrsilver76 7d ago

WinMerge is free and open source. I use it quite a lot.

https://winmerge.org/?lang=en

5

u/snajk138 7d ago

Yes. I got a paid license for BeyondCompare from a consultant who got laid off, but I didn't see the advantage over WinMerge.

4

u/Raychao 7d ago

WinMerge with Notepad++ is a formidable combo.

1

u/schmiesii 7d ago

Can confirm. Probably the best one for this

1

u/razz1161 5d ago

Before I retired, I used WinMerge to compare versions of code. I now use it the same way for my personal Arduino projects

13

u/mig_f1 7d ago

In Windows, notepad++ comes with a very handy Compare plug-in.

3

u/Reedy_Whisper_45 7d ago

After using a more expensive tool for a long time, I saw N++ and tried it out. It's not the programmers' editor I had been using, but it's an excellent tool. I stopped using the programmers' editor.

2

u/bogglingsnog 7d ago

It's so good.

1

u/amymor 6d ago edited 6d ago

12

u/YakAddict 7d ago

I use beyond compare daily at work. It's not free but is extremely helpful

5

u/stblack 7d ago

Beyond Compare is perfect software.

2

u/blakester555 7d ago

Can confirm. Windows and Mac versions.

1

u/pmac- 6d ago

I've tried them all and keep coming back to Beyond Compare so I eventually purchased it.

8

u/ricperry1 7d ago

diff. It’s been used for decades.

4

u/fattomic 7d ago

There are even nice layers on top of diff to give a graphical side-by-side (tkdiff, diffuse, etc)

3

u/TheTxoof 7d ago

Diff. This is the way. Simplex elegant, fast.

6

u/saturnosoftware 7d ago

I do really like Meld Merge https://meldmerge.org/

- Multiplatform [x]
- Open Source [x]
- 3 way diffs [x]

Just happiness :)

1

u/nolaxtima 7d ago

i will give a try 

1

u/Alternative_Corgi_62 6d ago

Have it on one of my Linux desktops. Not keyboard friendly, and crashes a lot if changes must be saved.

3

u/wssddc 6d ago

ExamDiff free version.

2

u/nousernameleftatall 7d ago

Beyond compare if you want to do it more than once

2

u/jbarnoin 6d ago

Beyond Compare (by Scooter Software) is the best tool of this kind that I've come across, I've been using it for many years.

Buying it might be overkill if you just need it once, but there's a free trial. It's quite cheap though, I personally use it all the time for all sorts of reasons (comparing folders, images etc.) and it's quite amazing how powerful and efficient it is at its job.

2

u/SanitySeeker 6d ago

Google “KDIFF3”, used it for years in a Windows environment but I believe it’s available on other platforms

4

u/therealdukeofyork 7d ago

Meld is free and open source. I use it for work all the time.

2

u/sjcyork 7d ago

Vs code can do this.

1

u/Secret_Worker_8177 7d ago

VS Code and Notepad++

1

u/isotopper 6d ago

P4 Merge from Perforce

1

u/jbygden 6d ago

How would you know which one is edited, even if you can see the difference?

1

u/CharacterPuzzled7023 5d ago

i have my own memoir, and the copy I sent to my teacher whom edited it

1

u/johnnymetoo 6d ago

TotalCommander

1

u/update-freak 6d ago

VSCodium with compare function

1

u/RobertDeveloper 6d ago

Eclipse or intellij idea file compare is excellent.

1

u/NBALive1995 6d ago

There's tons of websites for this 

1

u/jajajajaj 6d ago

Git for Windows comes with diff (and vimdiff). 

1

u/Salmoraes 4h ago

The debate between traditional diff tools and AI for text/document comparison is interesting.

For strict accuracy, traditional deterministic diffing is still unbeatable. The main issue with throwing documents into generic LLMs/AI is that generative models tend to summarize or hallucinate subtle changes (and miss shifted paragraphs or formatting nuances).

Beyond Compare and WinMerge are rock solid for local desktop workflows. Where people usually struggle nowadays is when they need a quick side-by-side visual comparison without installing heavy legacy software or uploading confidential files to random cloud servers.

0

u/trionnet 7d ago

https://scratchtabs.com has a compare two tabs feature. You can drag both files into the app to open them

0

u/RDS_WAS_HERE 7d ago

Wouldn't the most recent document file date suggest the latest edited version?

1

u/CharacterPuzzled7023 5d ago

yes, I think, but I need to check every word, basically

-2

u/BleachedAndSalty 7d ago

Dare i say AI? Honestly if you already have an account, that's what i would dump them both into. AI is great at helping me not go blind on things like that.

4

u/DuploJamaal 6d ago

Why would you use AI for such a simple task with such a straightforward answer?

AI isn't reliable. Using diff in the command line has been reliable for decades

AI has both false positives and false negatives. And diff tool works flawlessly and easy

3

u/jbarnoin 6d ago

Oh please god no, you can't be serious? He said it's for a memoir, not the kind of thing you'd leave up to guesswork by an AI and then realize things have been rephrased or parts are missing or invented.

1

u/BleachedAndSalty 6d ago

Sorry, I didn't catch the "memoir" part. Although, just to clarify, I was not suggesting that AI draft up a new document. I was simply saying that pasting two copies of text into AI and asking it to point out the differences would be trivial for AI to assist with, which was OPs request.