Diff Checker

Compare two texts and see added, removed, and unchanged lines. Free online diff checker with LCS algorithm. Fast, free, and works entirely in your browser.

How to use

  1. Paste texts — Enter original and modified text
  2. View diff — See added and removed lines highlighted
  3. Review — Understand exactly what changed

What Is a Diff Checker?

A diff checker compares two text inputs and highlights the differences between them. Lines that were added appear in green, removed lines in red, and unchanged lines are shown normally. It's the same concept behind Git diffs and code review tools.

How It Works

The tool uses the Longest Common Subsequence (LCS) algorithm to find the optimal alignment between the two texts, then marks each line as unchanged, added, or removed. This produces the minimal diff — the smallest set of changes needed to transform the original into the modified version.

Use Cases

  • Code review: Compare code versions before and after changes
  • Document editing: See what changed between document revisions
  • Configuration: Compare config files across environments
  • Testing: Compare expected vs actual output

Privacy

All comparison runs in your browser. Your text never leaves your device.

Compare JSON objects with JSON Diff. Test patterns with Regex Tester.

Frequently asked questions

What algorithm is used?

LCS (Longest Common Subsequence) based line-by-line comparison, similar to Unix diff.

Does it support word-level diff?

This tool compares line by line. For word-level differences within lines, use a code editor diff.

Can I compare code?

Yes. It works with any text — code, prose, CSV, configuration files, etc.

Related free tools

  • XML Formatter & Minifier — Beautify or minify any XML — SOAP, RSS, SVG, sitemap. Browser-based parser.
  • XML to JSON Converter — Parse any well-formed XML into a clean JSON tree with attributes and arrays.
  • JSON to XML Converter — Convert JSON to well-formed XML — supports attributes, custom root, declaration.
  • CSV Viewer — Open CSV or TSV files in your browser — sort, search, paginate, export filtered view.
  • JSON to CSV Converter — Convert JSON data to CSV format. Export to spreadsheets easily.
  • CSV to JSON Converter — Convert CSV data to JSON format. Useful for API development.
  • JSON Formatter — Format, beautify, or minify JSON with customizable indentation.
  • JSON Validator — Validate JSON syntax and find errors with line and column numbers.
  • HTML Minifier — Compress HTML by removing comments, whitespace, and line breaks.
  • CSS Minifier — Minify CSS by stripping comments, whitespace, and unnecessary characters.
  • JavaScript Minifier — Compress JavaScript by removing comments, whitespace, and empty lines.
  • Base64 Encoder/Decoder — Encode text to Base64 or decode Base64 back to text. UTF-8 support.

Browse all free tools · Guides and tutorials · PDF tools · Developer tools · Text tools · SEO tools