Saltar al contenido
ZeroKit

Comparador de textos

Gratis

Compara dos textos línea a línea.

A diff shows the smallest set of line changes between two versions of a text. Paste both versions and this tool lines them up side by side, colouring everything added or removed.

Loading tool…
Funciona 100 % en tu navegador: no se sube nada.·Herramientas de texto

Cómo usar Comparador de textos

  1. 1Paste the original text in the left pane and the revised text in the right.
  2. 2Removed lines appear in red on the left, added lines in green on the right.
  3. 3Toggle ignore whitespace or ignore case to hide formatting-only changes.
  4. 4Copy the lines you need, or clear both panes and compare another pair of texts.

Comparador de textos: preguntas frecuentes

How does this diff checker work?

It runs a line-based longest-common-subsequence algorithm, the same idea git uses at line level. Unchanged lines are matched up and everything between them is reported as an addition or a removal.

Can I ignore case and whitespace differences?

Yes. The toggles normalise each line before comparing, so changes in capitalisation, indentation or extra spaces stop showing up as differences while the original text stays visible.

Is there a size limit for the comparison?

The diff runs locally, so no server imposes a limit. Pastes over 1 MB are compared on the first megabyte, and extremely large line counts switch to a simplified common-prefix and suffix comparison.

Does it work for code and JSON?

Yes. Any plain text works: source code, JSON, Markdown, CSV or prose. The diff is line-based, so it highlights whole changed lines rather than individual characters within a line.

¿Usas Comparador de textos a menudo?

Pro elimina todos los anuncios, aumenta los límites de archivo y añade modo por lotes y preajustes guardados en todas las herramientas.

Comparar planes →

Herramientas relacionadas