Toolshub
convertir · dans le navigateur

Comparer deux gros fichiers texte sans les téléverser

Compare deux fichiers texte de 10 Mo chacun dans le navigateur et écrit un .diff unifié ou une page HTML autonome côte à côte.

$35 achat unique · gratuit jusqu’à 10 MB par fichier· 5 exécutions gratuites par jour

Fichiers
Aucun fichier choisi

10 Mo maximum par fichier, texte uniquement ; rien n'est téléversé.

Tourne dans cet onglet. Rien n’est envoyé.

Résultat

Palier gratuit : jusqu’à 10 Mo par fichier, 2 fichiers par exécution, 5 exécutions par jour. Cet outil coûte $35 une fois. Comparer.

Licence : offre gratuite.

Ce que cette page fait autrement

Un diff en ligne signifie souvent coller le fichier sur le serveur de quelqu'un d'autre, ce qui exclut le contrat en cours, le journal d'incident et la configuration exportée qui ont motivé la question. Cette page lit les deux fichiers en local et les compare ligne à ligne : début et fin communs retirés, lignes uniques comme ancres, changements présentés avec le contexte choisi. Elle produit un diff unifié applicable avec patch, ou une page HTML avec les deux versions côte à côte pour un collègue qui ne lit pas les diffs.

compare deux fichiers de dix mégaoctets entièrement dans l'onglet et produit à la fois un diff unifié et une page autonome côte à côte

Exemple d’entrée et de sortie

Étape Cas Poids Notes
Entrée Two versions of a config export 219 B two small YAML exports with one changed value and one toggled flag
Sortie A unified diff 230 B one hunk with three lines of context, plus a closing count of added and removed lines

Ce sont les chiffres de démonstration sur lesquels cette page a été construite, pas une garantie pour chaque fichier.

Ce que vous pouvez vérifier vous-même

La promesse Ce que le test a montré
a single changed line in a 400-line file is one hunk, not a wall of output unit test changes line 200, asserts 199 unchanged lines are stripped from each end and exactly one hunk is produced
the side-by-side page references nothing outside itself test asserts the output starts with a doctype, contains line-number cells and no http or https reference
ignoring whitespace is a choice with three different answers test shows a trailing-space change as a difference under exact mode, ignored under trim, and inner spacing ignored under all

Questions

Les réponses ci-dessous restent en anglais.

Why not use git or my editor?

Use them when the files are in a repository or on the same machine. This page is for the three cases they do not cover: a file you are contractually not allowed to upload, a one-off export that is not in any repository, and a comparison a non-technical colleague has to read, where a side-by-side HTML page beats a terminal.

What does each whitespace option actually ignore?

Exact compares every character, so a trailing space is a difference. Trim ignores leading and trailing whitespace, which makes a re-indented block look unchanged. All ignores whitespace inside the line too, so "foo bar" and "foobar" count as the same line; that is useful for tokenised dumps and dangerous for prose, so it is not the default.

What happens when the two files are identical?

The page says so instead of downloading an empty file. An empty diff looks like a failed run, and the line count gives you something to quote when the answer is "nothing changed".

How large a comparison is realistic?

Ten megabytes per file, and the page aborts with a clear message if the files differ in more than two hundred thousand lines. In practice the shared beginning and end are stripped first and the rest is anchored on unique lines, so a log with a handful of changed entries stays fast even when it is large.

Does it handle Word documents or PDFs?

No. Those are archives or page descriptions, not text, and a line diff of their bytes is noise. Convert to plain text first. The page also does not merge three versions or compare syntax trees; it compares lines, exactly and predictably.

Prix

Cet outil coûte $35 une fois, tant qu’il existe. Un paiement, pas un abonnement. La licence est stockée dans ce navigateur ; l’identifiant de transaction la restaure ailleurs.

Gratuit : 5 exécutions par jour, 10 Mo par fichier, lots de 2. Achat unique : lots de 50, 200 Mo par fichier.

Voir aussi