Compare two texts online and see every difference with line numbers. This free text difference checker shows added, removed and modified lines side by side or as a unified diff, highlights changed words within a line, and lets you jump from change to change, even in large documents. Everything runs in your browser; your text is never uploaded.
The Text Difference Checker is a free online diff tool that compares two texts and shows exactly what changed. Paste an original and a changed version, or open two local text files, and the tool lists every added, removed and modified line with the line numbers of both texts. Changed words inside a line are highlighted, so you can review edits in articles, contracts, release notes, configuration files, CSV exports or source code without reading everything twice.
.diff patch or a standalone HTML report.Every row shows two line numbers: the number in the original text (left) and the number in the changed text (right). Removed lines only have an original number, added lines only have a changed number, and modified lines show both. This makes it easy to find a change in your editor or document, even when the texts contain thousands of lines. Numbers always refer to the original input, also when you ignore blank lines or whitespace.
-, added lines with +, and both line number columns stay visible.When a line is modified, the checker compares the old and new line again and marks only the words that differ. Switch to Character differences to spot single-letter typos, or to Whole lines only for a faster, plain line diff. Inline highlights are skipped automatically when two lines have almost nothing in common, so you are not distracted by random matches.
Invoice and invoice as equal.CRLF), Unix (LF) and old Mac (CR) line endings are always treated as equal.Original text
1 The invoice is due within 30 days.
2 Late payments incur a 2% fee.
3 Contact our support team for questions.
Changed text
1 The invoice is due within 14 days.
2 Contact our support team for questions.
3 Payments can be made by bank transfer.
Result: line 1 is modified (30 becomes 14, only the number is highlighted), original line 2 is removed, line 3 moves up unchanged to changed line 2, and changed line 3 is added. The summary reports 3 changes: 1 modified, 1 removed and 1 added line.
patch and most code editors.The diff engine first trims the identical beginning and end of both texts, then anchors on lines that are unique in both versions (patience diff) and resolves the remaining regions with the Myers algorithm. Tens of thousands of lines are compared in well under a second on a normal laptop. Collapsed unchanged blocks, the change counter, the jump list and the overview bar keep long reports and log files manageable. The practical limit is 3,000,000 characters per text.
All processing happens locally in your browser with JavaScript. Your texts and files are never uploaded, stored or shared, so you can safely compare confidential contracts, personal documents or unpublished articles. The tool compares plain text: formatting from Word or PDF files is not taken into account, and moved paragraphs are shown as a removal plus an addition rather than as a move.