Old and new sources
Paste the old and new LaTeX sources, then run latexdiff.
Browser-native · Private · WebAssembly
Compare two LaTeX files and get a compilable diff with
\DIFadd / \DIFdel markup. This page runs
latexdiff itself — the
same Perl tool used with Overleaf and arXiv workflows — inside
WebPerl. Nothing is uploaded;
the diff is computed on your machine.
Paste the old and new LaTeX sources, then run latexdiff.
latexdiff Online is a free browser tool for comparing two LaTeX documents.
It runs the real latexdiff program
(the standalone latexdiff-so script by Frederik Tilmann) inside
WebPerl, a WebAssembly build of Perl.
You get the same revision markup that people use with Overleaf, Git, and arXiv
submissions, without installing Perl.
latexdiff reads an old .tex file and a new one, then writes a third file
in which changes are wrapped in commands such as
\DIFaddbegin \DIFadd{…} \DIFaddend for additions
and \DIFdelbegin \DIFdel{…} \DIFdelend for deletions.
When you compile that file, added text is typically underlined in blue and deleted text
is struck out in red (Underline style).
\documentclass.latexdiff.tex and compile it with pdfLaTeX or Overleaf.
Underline (default) uses wavy underlines and strikeout via the
ulem and color packages.
Color (CTAD) maps to latexdiff’s CTRADITIONAL style (colored additions and footnote-style deletions).
Change bar puts a bar in the margin next to changed lines (needs changebar).
Fine math markup can break complex align environments; Coarse or Off is safer for heavy equations.
Comparison happens on your computer. Sources are not uploaded to a server. After the WebPerl engine has loaded, the tool can be used without sending your manuscript anywhere.
The CTAN package also includes latexdiff-vc for Git, Subversion, and similar
version control, and latexrevise to accept or reject markup.
This site focuses on the core two-file comparison. For the full manual see
the latexdiff GitHub repository
and the Overleaf latexdiff guide.