This tool compares two blocks of text and shows you exactly what changed between them, line by line, marking what was added, removed or left unchanged. Comparing two versions of something is a constant need: checking what changed between two drafts of a document, two versions of a configuration file, two snippets of code, or two lists. Spotting the differences by eye is slow and unreliable, especially when the texts are long or the changes are small, and that is precisely what a diff tool is for. This checker lines up the two texts and works out the smallest set of changes that turns the first into the second, using the same kind of longest-common-subsequence approach that powers the diff tools developers rely on. You paste the original text into one box and the changed text into the other, and the calculator produces a combined view where unchanged lines are shown plainly, removed lines are marked with a minus, and added lines are marked with a plus. It also counts how many lines were added, removed and left unchanged, for a quick summary. The result updates as you edit, so you can compare and adjust on the fly. Everything runs in your browser, so your text stays private. Use it to review edits to a document, to see what changed in a file, to compare two lists, or to check code changes. The comparison works at the line level, which suits most documents, configuration and code. For the clearest results, keep each logical item on its own line, so that a single changed item shows as one removed and one added line rather than rearranging everything around it.
Compares line by line using a longest-common-subsequence diff. Keep each logical item on its own line for the clearest results. Runs in your browser.
The two texts are split into lines. The tool finds the longest sequence of lines common to both, then walks through both texts: lines in both are shown unchanged, lines only in the original are marked removed with a minus, and lines only in the changed version are marked added with a plus. It tallies each category.
Comparing a list of apple, banana, cherry, date with apple, blueberry, cherry, date, fig, the tool keeps apple, cherry and date unchanged, marks banana as removed and blueberry as added in its place, and marks fig as added at the end: two additions, one removal and three unchanged lines.
If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.
Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.
All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.
Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.
Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.
Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.
All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.
About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use
Reviewed and maintained. Last reviewed 2026-06-07 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.
© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.