Compare two texts line by line with changed words highlighted
Markdown Diff
See what really changed between two versions of a Markdown document, without noise from bullet or heading style.
Loading tool…
How to use markdown diff
Paste or open the original and the changed Markdown.
Compare the Markdown source, or switch to Rendered text to compare only the words a reader sees.
Leave style-only changes ignored, or turn that off to see every character.
Copy or download the differences as a unified .patch file.
What this tool does
- Tidies both sides with the Markdown formatter first, so * versus - bullets or _ versus * emphasis are not reported as changes.
- Rendered text mode compares headings, paragraphs, list items, table rows and code lines after rendering, so markup-only edits disappear.
- Finds the smallest set of line changes with the Myers algorithm and highlights the changed words inside each line.
- Can hide unchanged stretches and show only the changes with two lines of context.
How the result is verified
After every comparison the list of changes is replayed on the original lines and must rebuild the changed side exactly. The result is shown under the diff.
Frequently asked questions
How is this different from a normal diff?
A normal diff reports every changed character, so switching * bullets to - or rewriting an underlined heading as # shows up as a change. This tool can ignore those, or compare only the rendered words.
Can I apply the patch with git?
The download is a standard unified diff with three lines of context. In Markdown source mode with style-only changes not ignored, it applies to the original file with git apply or patch after you set the file paths.
Is my data uploaded to a server?
No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.
Related tools
Consistent headings, bullets, emphasis and spacing, output unchanged
Compare two JSON documents by structure, with the path of every change
CommonMark and GitHub tables to clean, sanitized HTML