Text & Code Diff Checker

Paste an original and a changed version to see which lines were added or removed. Switch between inline and side-by-side views.

Text & Code Diff CheckerRuns in your browser

Your input stays in your browser and is not sent to a server by this page.

What it is and when to use it

A diff compares two versions of text and marks what was added, removed or left unchanged. It is useful for reviewing edits to code, configuration files, documents and copied content without reading both versions line by line.

How to use

  1. Paste the original text on the left and the new version on the right.
  2. Select Compare.
  3. Choose inline or side-by-side view.
  4. Use the ignore options to hide whitespace or case-only changes.

Example

Input
Original: let a = 1;
Changed:  let a = 2;
Result
- let a = 1;
+ let a = 2;

Tips and common mistakes

Frequently asked questions

Does it compare words or lines?

Lines. A changed line is shown as one removed line and one added line.

Is there a size limit?

Each side is limited to 2,000 lines so the browser stays responsive.

Is my text uploaded?

No. The comparison runs entirely in your browser.

Related tools