Comparer Texte — Outil Diff Texte Côte à Côte

Compare two texts side by side with word-level diff highlighting. Supports file upload. Line-by-line and inline view. Free online text comparison tool.

Paste your original and modified texts into the two panels and click Compare. Changed lines are highlighted by color — green for additions, red for deletions. Word-level highlighting shows exactly which words changed within a line. Supports plain text, code, JSON, and any other format.

Original
Modified

How to Use

1

Paste or upload texts

Enter your two texts in the left and right panels. Use the upload button to load files directly.

2

Choose view mode

Switch between Split view (side by side) and Inline view (unified diff) using the toggle.

3

Review the changes

Green lines were added, red lines were removed. Changed lines show word-level highlights inside.

Frequently Asked Questions

What is the difference between inline and split view? +
Split view shows the two texts side by side, with additions highlighted green on the right and deletions in red on the left. Inline view shows both in a single column — red lines were removed, green lines were added. Split is better for reading context; inline is better for seeing exactly what changed.
Can I upload files to compare? +
Yes — click "Upload File" above each panel to load any text or code file. Common formats include .txt, .js, .ts, .py, .json, .html, .css, .md, .yaml, and more. Files are read locally and never uploaded to a server.
Does this highlight word-level changes? +
Yes — for lines that are similar but changed, the tool highlights the specific words or characters that differ within the line (shown with a darker background). This helps identify small changes in long lines.
Is there a size limit for comparison? +
There is no hard limit, but comparisons of very large files (10,000+ lines) may be slow since everything runs in your browser. For very large codebases, a dedicated diff tool like git diff is recommended.
Is my content sent to a server? +
No. The entire comparison runs in JavaScript in your browser. Your text and files never leave your device.


Guide : Comparateur de Texte (Diff)

Qu'est-ce que c'est ?

Le Comparateur Diff affiche les différences entre deux textes côte à côte, en surlignant les lignes ajoutées, supprimées et modifiées — comme git diff dans votre navigateur.

Utile pour comparer des configurations, des versions de fichiers ou des sorties d'API.

Comment utiliser

  1. Collez le texte original dans le panneau de gauche.
  2. Collez le texte modifié dans le panneau de droite.
  3. Les différences sont surlignées automatiquement (vert : ajout, rouge : suppression).
  4. Naviguez entre les changements avec les boutons de navigation.

Conseils professionnels

🧰 50+ Tools