I want to be able to diff the source of two pages, or even plain text files that are open in two browser windows. The only thing I can find is the PageDiff plugin for Firefox, but is there anything else available (for any browser)?


I dont know of a tool specific for this, but winmerge is an excellent diffing tool and you can open a new window and paste the source from both pages into the 2 panes and do a diff. A little bit of extra work but will work.


I can see where you are coming from,
But, why not just do a wget on the two files and compare with the regular diff utilities?

  • 1
    Perhaps because you aren't using linux? :) – gnarf Jul 26 '09 at 13:09
  • 1
    @gnarf, How about Cygwin? (and there are a lot of other ways to get there). Targeting for a browser based diff solution is harder than most of them. – nik Jul 26 '09 at 18:33
  • What we want finally is a text file diff. A vim based diff will give you a beautiful syntax highlighted view of two HTML source versions. – nik Jul 26 '09 at 18:38

This might help out. You can use a pastebin service to do this. I like http://dpaste.de so these instructions are based on that site.

  1. Create a new paste item by copying and pasting the first page's source code into the text area (be sure to select HTML as the language type).
  2. After you save the pasted item, you will be directed to the view item page. Scroll to the bottom of that page and click "Write and Answer"
  3. On the Write and Answer page, delete the content and paste in the source of the second HTML page you want to diff.
  4. After saving your answer, you will be directed to another view item page. You will see a History table in the upper right corner of the page. Select the two pages you want to diff and click the "Compare" button to view the diffs in your browser.

It requires a bit of copy/pasting, but overall it's a pretty quick way to get a diff of two files.


I'm on linux, so I get the two webpages, and type (diff -u -p -N file1.html file2.html > some_diff_file), and after this, I use kdiff.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.