Toolshub
convertir · en el navegador

Comparar dos archivos de texto grandes sin subirlos

Compara dos archivos de texto de hasta 10 MB cada uno en el navegador y escribe un .diff unificado o una página HTML autocontenida en paralelo.

$35 compra única · gratis hasta 10 MB por archivo· 5 ejecuciones gratis al día

Archivos
Ningún archivo elegido

Máximo 10 MB por archivo, sólo texto; nada se sube.

Se ejecuta en esta pestaña. No se sube nada.

Resultado

Plan gratuito: hasta 10 MB por archivo, 2 archivos por ejecución, 5 ejecuciones al día. Esta herramienta cuesta $35 una vez. Comparar.

Licencia: plan gratuito.

Qué hace esta página de distinto

Un diff en línea suele significar pegar el archivo en el servidor de otro, lo que descarta el borrador de contrato, el registro de incidentes y la configuración exportada que motivaron la pregunta. Esta página lee ambos archivos en local y los compara línea a línea: recorta el principio y el final comunes, ancla en líneas únicas y presenta los cambios con el contexto elegido. Escribe un diff unificado aplicable con patch, o una página HTML con ambas versiones en paralelo para un colega que no lee diffs.

compara dos archivos de diez megabytes enteramente en la pestaña y produce tanto un diff unificado como una página paralela autocontenida

Entrada y salida de ejemplo

Paso Caso Tamaño Notas
Entrada Two versions of a config export 219 B two small YAML exports with one changed value and one toggled flag
Salida A unified diff 230 B one hunk with three lines of context, plus a closing count of added and removed lines

Estos son los números de demostración con los que se construyó esta página, no una garantía para cada archivo.

Lo que puede comprobar usted mismo

La promesa Lo que mostró la prueba
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

Preguntas

Las respuestas siguientes siguen en inglés.

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.

Precio

Esta herramienta cuesta $35 una vez, mientras exista. Un pago, no una suscripción. La licencia se guarda en este navegador; el identificador de transacción la restaura en otro sitio.

Gratis: 5 ejecuciones al día, 10 MB por archivo, lotes de 2. Compra única: lotes de 50, 200 MB por archivo.

Relacionadas