Skip to content
latexci
PreviewDiffWord → LaTeXBibTeXSymbolsTableTemplatesAcademics
Sign inFree
PreviewDiffWord → LaTeXBibTeXSymbolsTableTemplatesAcademicsFree
GitHub ↗
Sign in

Online LaTeX Diff Tool: Compare .tex Files Side by Side

Paste or drop two versions of a .tex file to see what was added and removed, by line or by word, and download the changes as a patch.

Compare by
View
Layout
original.texpaste, or drop a .tex file
revised.texpaste, or drop a .tex file
Diff+12−410 unchanged
1 \documentclass{article}
+\usepackage{amsmath}
2 \begin{document}
3
4 \section{Introduction}
5
6−This is the original version of the document.
7−We are studying the properties of prime numbers.
+This is the \textbf{revised} version of the document.
+We are studying the properties of prime numbers and their distribution.
8
9−The sum of two primes is often even.
+The sum of two odd primes is always even.
10
+\section{New Section}
+
+We added an important equation:
+\[
+ \pi(x) \sim \frac{x}{\ln x}
+\]
+
11 \section{Conclusion}
12
13−In conclusion, primes are fascinating.
+In conclusion, primes are truly fascinating objects.
14
15 \end{document}
Figure 1. The original and the revised source, and their differences: removals in red, additions in green. Nothing leaves your browser.

1Review advisor revisions without track changes

LaTeX has no built-in track changes, so when a supervisor or co-author edits your chapter and sends the file back, the question is always the same: what did they actually change? Put your version in the left pane (original.tex) and theirs in the right pane (revised.tex), by pasting the source or dropping the .tex files. Removals show in red, additions in green, with a running count of added, removed and unchanged lines. If you loaded them the wrong way round, the Swap button flips the two sides.

2Line mode or word mode

Line mode compares whole lines, as git diff does: ideal for preamble changes, new equations or moved paragraphs. Word mode highlights the exact words that changed inside a line, which matters in LaTeX because a paragraph is often a single long line: a one-word correction would otherwise mark the whole paragraph. Both modes work in the unified view (one column, line numbers) and the side-by-side view (original and revised aligned row by row).

3Download a patch and apply it

The Download patch button saves changes.patch, a standard unified diff built line by line whatever mode is on screen (Copy diff instead copies a simple +/- listing, handy for an email). It is a Git-style patch for the file named next to the button (the last .tex you dropped in, main.tex by default; edit it if your file has another name or lives in a subfolder, e.g. chapters/intro.tex). From the folder that holds the file:

git apply --check changes.patch   # check first
git apply changes.patch           # apply
patch -p1 < changes.patch         # same thing without Git

Keep the project under Git and every round of advisor revisions becomes one commit, with a proper history you can compare or roll back.

4Compare two arXiv versions

To see what changed between v1 and v2 of a preprint, download each version’s source from arXiv (the e-print link on the abstract page), extract both archives, and drop the matching main .tex files into the two panes. Word mode is usually the most readable here, since authors tend to rewrite sentences rather than lines.

Everything runs in your browser. Once the source looks right, open it in the live LaTeX preview to check the equations, or start a new chapter from one of the free templates.

Appendix A Questions

Are my .tex files uploaded?+
No. Both versions are compared inside your browser and never sent to a server, so unpublished chapters and drafts stay on your machine. The diff also works without an account.
What is the difference between line mode and word mode?+
Line mode marks whole changed lines, like git diff, and is best for code-like edits and for producing a patch. Word mode highlights the individual words that changed inside a line, which is easier to read when an advisor rewrites a sentence in a long paragraph.
How do I apply the downloaded .patch file?+
The .patch file is a Git-style unified diff for the file named next to the download button (main.tex by default, or the last .tex you dropped in). From the folder that holds that file, run git apply --check changes.patch, then git apply changes.patch, or patch -p1 < changes.patch without Git. The patch is always built line by line, whichever mode is shown on screen.
Is this the same as latexdiff?+
No. latexdiff produces a new .tex file that compiles to a PDF with changes marked in the typeset output. This tool compares the source text and shows the changes on screen, with no TeX installation. Use it to review what changed; use latexdiff when you need a marked-up PDF to send back.
Can I compare two arXiv versions of a paper?+
Yes, by hand: download the source of each version from arXiv (the e-print link, for example arxiv.org/src/2301.00001v1 and v2), extract the archives, and paste or drop the matching .tex files into the two panes.
See also. Live LaTeX Preview, Word to LaTeX, Table Generator, LaTeX Templates and BibTeX Tools.
latexci

Free LaTeX tools for researchers and students, in any browser. No paid plan, no advertising.

Star on GitHubBuy me a coffee

Tools

Live PreviewBibTeX ToolsDOI → BibTeXarXiv → BibTeXPubMed → BibTeXISBN → BibTeXLaTeX DiffWord → LaTeXSymbol SearchTable GeneratorTemplatesCV Generator

Learn

Academics hubLife after OverleafFreeGitHub

Community

GitHub IssuesFeature Requests

© 2026 latexci. By Sitraka Forler, sitraka.lu

PrivacyTerms