Free tool
Compare two Markdown documents
Paste the original and the revision, and see what changed line by line: added lines in green, removed lines in red, both numbered. Copy the result as a unified diff for a review comment.
Differences
Paste two documents to see what changed.
The copied diff is a unified diff: “+” for an added line, “−” for a removed one.
Runs entirely in your browser — your file is never uploaded.
How to diff two Markdown files
- Paste the first version into the left box and the second into the right. The comparison updates as you type.
- Read the result: two gutters give the line number in each document, and
+/−mark insertions and deletions. Tick Hide unchanged lines to keep only the changes and two lines of context. - Copy the unified diff or download it as
.diff. The copied diff always holds the whole change, even when the view is trimmed.
How the comparison works
- It is a real longest-common-subsequence diff — the same one the editor’s compare mode uses — so moving a paragraph shows as a move rather than a rewrite of everything after it.
- Trailing whitespace at the end of a document is normalised first, so a final newline is not reported as a change. Whitespace inside a line is significant and is shown.
Frequently asked questions
Is this a word-level or a line-level diff?
Line level. Two lines are compared as whole strings, which is what a Markdown review needs: a changed sentence is shown as its before and after, not as a dozen word edits.
Can I compare Word documents or PDFs?
Convert them to Markdown first with the Word to Markdown or PDF to Markdown converter, then paste both results here.
Are my documents stored anywhere?
No. The comparison happens in the page and closing the tab discards both documents. There is no account and no upload.
Compare inside the editor
Open the editor to keep several documents open and switch between them without copying and pasting.
Open the Markdown Viewer