Step by step
- Command Prompt: fc file1.txt file2.txt.
- PowerShell: Compare-Object (Get-Content a.txt) (Get-Content b.txt).
- Or copy both files into the boxes above.
At a glance
| Tool | Command | Output |
|---|---|---|
| Command Prompt | fc a.txt b.txt | Differing blocks |
| PowerShell | Compare-Object (Get-Content a.txt) (Get-Content b.txt) | Lines only in one file |
| This tool | Paste and Compare | Line and word highlights |
Related questions
How do I open Command Prompt in the right folder?
Type cmd in the File Explorer address bar of that folder and press Enter.
Does fc work for binary files?
Yes, with fc /b, but it shows byte differences, not text.
Is there a visual tool built in?
No, Windows has no visual diff; use this page or a tool like WinMerge.
More questions: text compare
- How to compare two texts or documents in Word
- How to compare text in Excel
- How to compare text in two PDFs
- How to compare two files in Notepad++
- How to compare two files or texts in VS Code
- How to compare text while ignoring spaces and case
- How to compare two text files on a Mac
- Text compare for large files and long documents
- How to compare two texts for similarity or copying
- How to compare code, SQL or CSV online safely
Updated November 14, 2026.