Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Compare

Agata DalachAgata Dalach109 downloads

Compare two notes or LaTeX files side by side: changed lines and words are highlighted in the editor, matching text sits level, and each change can be copied to the other note.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates3

Compare two notes side by side, right in the editor. Changed lines and the changed words are highlighted in both notes while you keep writing, matching text sits level in both notes, and both notes scroll together. Cmd+click a difference, or a single changed word, to copy it to the other note. LaTeX files are matched by their \section{…} commands.

Comparing two notes: marked words, gaps that keep matching text level, Cmd+click to copy a change, and live updates

Start a comparison

  • Two notes open side by side: run Compare: Two notes from the command palette. They are compared straight away.
  • Any other layout: the same command, or Compare: Current note with…, asks which note to compare the current one with. Notes open in tabs come first, then recently opened ones. A note that is not on screen opens in a split to the right.
  • From a menu:
    • Right-click a note in the file explorer, a link or a search result, and choose Compare with current note.
    • Right-click a tab and choose Compare with….
    • Select two notes in the file explorer, right-click and choose Compare the two notes.

A comparison stays with its two tabs. You can open other notes, split panes or use the sidebars, and it keeps going. It ends when you close either tab, open another note in it, or run Compare: Stop comparing.

What you see

  • Lines only in the left note are red, lines only in the right note are green, and changed lines are yellow with the changed words marked.
  • Left and right are where the notes sit on screen (top and bottom in a horizontal split), so the colours stay the same wherever you click.
  • Headings that appear in both notes anchor the comparison: text is only matched within the same section.
  • Matching text sits level in both notes: where one note has text the other does not (a new table, an extra paragraph), the other note shows a striped blank space of the same height, and both notes scroll together. The space is only on screen, never in the notes. Turn this off with Settings → Compare → Line up matching text; scrolling then keeps the same section in view in both notes.
  • An edited paragraph is found again even when text was added or removed around it, such as a new table above it: lines with at least half of their words in common are paired, so only the changed words are marked, and the added lines show on their own.
  • The Compare panel in the right sidebar lists the differences under their headings, one row for each run of consecutive changed lines. Click a difference to jump to it in both notes, or a file name to reveal the file in the file explorer.

Copy a difference to the other note

  • Cmd+click (Ctrl+click on Windows and Linux) a marked word in a changed line to copy just that change to the other note. That way you can keep one change from the left and another from the right in the same paragraph. Cmd+click elsewhere on a highlighted line copies its whole difference, so both notes read the same there. On a link, Cmd+click still opens the link; click beside it instead. Cmd+click on a framed table, callout or embed copies its difference too.
  • Right-click a highlighted line and choose Copy to other note or Use other note's version. For lines only one note has, the second item deletes them. On a marked word, the menu also offers Copy this change to other note and Use other note's version of this change.
  • Compare: Copy difference to the other note and Compare: Use the other note's version do the same for the difference at the cursor, so you can give them hotkeys.

After a copy, the cursor moves to the changed lines, so Cmd+Z (Ctrl+Z) undoes the copy straight away, and the highlights come back.

LaTeX and other text files

Any file that Obsidian opens in its editor can be compared, for example .tex files when a plugin such as Custom File Extensions opens them as text.

  • In .tex files the sections are \part, \chapter, \section, \subsection, \subsubsection, \paragraph and \subparagraph. Commands in % comments and in verbatim, lstlisting, minted or comment environments are ignored.
  • A Markdown note and a .tex file can be compared too: a # Methods heading matches \section{Methods}.
  • Other files are compared line by line, without sections.

Live updates

Compare: Toggle live updates, or the scale icon in the status bar on desktop, keeps the highlights up to date while you edit either note. It stays on for later comparisons until you turn it off or run Stop comparing.

Good to know

  • Highlights show in Source mode and Live Preview. Reading view is not highlighted. In Live Preview, a table, callout or embed that is part of a difference gets a coloured frame, since Obsidian draws it as one block in place of its lines. Inside tables, the changed words are marked in their cells too.
  • The plugin changes a note only when you copy a difference into it. That is an ordinary edit, saved like typing. Highlights disappear when the comparison ends.
  • To offer notes to compare with, the note picker lists the files in your vault (their names and folders). The plugin reads the text of the two notes being compared and nothing else, and it makes no network requests.

Install

In Obsidian, open Settings → Community plugins → Browse, search for Compare, install it and turn it on.

To install by hand, download main.js, manifest.json and styles.css from the latest release into <vault>/.obsidian/plugins/compare/, then turn the plugin on under Settings → Community plugins.

HealthExcellent
ReviewPassed
About
Compare two notes side by side in the editor, highlighting changed lines and changed words in both files as you edit. Align matching text and scroll both panes together, anchor matches by headings (LaTeX \section supported), and click a difference to copy it to the other note.
FilesEditing
Details
Current version
1.2.1
Last updated
3 weeks ago
Created
11 months ago
Updates
3 releases
Downloads
109
Compatible with
Obsidian 1.7.2+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
Agata DalachAgata Dalachadalach
GitHubadalach
  1. Community
  2. Plugins
  3. Files
  4. Compare

Related plugins

Thino

Quickly capture memos and display them in the sidebar with a heatmap. (Closed source)

Gemini Scribe

Allows you to interact with Gemini and use your notes as context.

Code Space

Professional code file management with visual dashboard, syntax highlighting editor, Markdown embedding, external folder mounts, and terminal integration.

Remember cursor position

Remember cursor and scroll position for each note.

Notebook Navigator

A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.

LanguageTool Integration

Advanced grammar and spell checking, powered by LanguageTool.

Text Format

Format selected text upper/lower/capitalize.

Claudian

Embeds Claude Code/Codex and other local Agents as AI collaborators in your vault.

Meta Bind

Make your notes interactive with inline input fields, metadata displays, and buttons.

Advanced URI

Control everything with URI.