Browser-native · Private · WebAssembly

latexdiff Online

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.

Old and new sources

Paste the old and new LaTeX sources, then run latexdiff.

Options

Diff output

About latexdiff Online

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.

What latexdiff does

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).

How to use this page

Markup styles and math

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.

Privacy

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.

Related tools

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.