Markdown compare, side by side
Use this markdown compare tool to paste or open two versions and see exactly what changed, with added and removed lines and the changed words highlighted.
What is a markdown diff?
A diff is a list of the differences between two versions of a text. Because markdown is plain text, a markdown diff shows real changes, a reworded sentence, a new list item or a changed link, instead of the hidden formatting noise you get when comparing Word files or PDFs.
This markdown compare tool lines up the two versions and marks every line that was added, removed or changed. Inside a changed line, the exact words that differ are highlighted, so a small edit in a long paragraph is easy to spot. Long stretches with no changes are folded away, leaving three lines of context around each change, and a summary shows how many lines were added and removed. Line numbers for both versions are shown next to every line. The sample, a short launch plan with a few edits, shows how changes are marked before you paste your own.
Read the result side by side, with the original on the left and the new version on the right, or inline as a single list. Tick Ignore whitespace to skip changes that are only spaces or line endings. You can compare markdown files by opening them, or paste text from anywhere, including code and configuration files. Both versions stay in your browser. When you are happy with the final version, read it in the markdown reader or export it with Markdown to PDF.
Why use this Markdown compare tool
Line and word changes
Changed lines are paired, and the words that changed inside them are highlighted.
Side by side or inline
Read the two versions next to each other, or as one list of changes.
Ignore whitespace
Optionally ignore changes that are only spaces or line endings.
Private
The comparison runs in your browser.
How to compare two markdown files
- Paste or open the original on the left.
- Paste or open the changed version on the right.
- Read the changes below; switch between side by side and inline.
Common uses for comparing markdown
- Check what changed between two drafts of a README, a blog post or a set of docs.
- Review edits from a colleague who sent back a copy instead of opening a pull request.
- Compare an AI-rewritten version of a document with your original, word by word.
- Spot differences between two copies of the same note synced from different devices, before you keep one.
- Check the output of a converter against a version you have already edited by hand.
- Compare configuration, YAML front matter or changelog files before you publish them.
Frequently asked questions
Can I compare any text, not just markdown?
Yes. It works with any plain text, code or configuration file.
Does it show word changes?
Yes. Inside a changed line, the words that were added or removed are highlighted.
Are my files uploaded?
No. Both texts stay in your browser.
How do I compare two markdown files?
Paste or open the original on the left and the changed version on the right. The differences appear below at once. Switch between Side by side and Inline to read them. You can also drag a file onto either box, or press Open file.
Does it compare the rendered result or the source?
It compares the markdown source, which shows every change, including ones that would be hard to see in the rendered page, such as a changed link address, image path or heading level. To see how a version looks, paste it into the markdown editor.
Is this markdown compare tool free?
Yes. It is free, needs no sign-up, has no size limit beyond what your browser can handle, and works on a phone, where the inline view is easiest to read on a narrow screen.
Open editor