Glot — Free Online JSON Editor & i18n Translation Tool

Diff Tool

Compare two texts and see the differences line by line — free, no sign-up required.

Original
Modified

What is a Diff Tool?

A diff tool compares two pieces of text, code, or files and highlights the differences line by line. It shows additions, deletions, and unchanged lines — essential for code reviews, document comparisons, and tracking changes. This free online diff tool works entirely in your browser with no data uploaded.

How to Use the Diff Tool

  1. 1

    Paste two texts to compare

    Enter the original text in the left panel and the modified text in the right panel. You can paste code, configuration files, translation files, or any plain text.

  2. 2

    View the differences

    Added lines are highlighted in green, removed lines in red, and unchanged lines are shown in their original color. Switch between inline and side-by-side views.

  3. 3

    Analyze the changes

    The summary shows the total number of additions, deletions, and modifications. Use this for code reviews, document comparisons, or tracking changes between file versions.

Frequently Asked Questions

What types of text can I compare?

Any plain text, source code, configuration files, JSON, YAML, Markdown, or any other text format. Paste or drag-and-drop files directly.

Is my data uploaded to a server?

No. All comparison happens locally in your browser. Nothing is sent to any server.

What is the difference between inline and side-by-side view?

Inline view shows all changes in a single column with +/- markers. Side-by-side view shows the original and modified text in two columns for easier visual comparison.