About Markdown Diff
Paste or open two versions of a README, a changelog, documentation or notes and see exactly what changed. The source view lists every line with a + or - in front of what was added or removed. The rendered view shows the document as it reads, with each changed paragraph, list, table or code block marked Removed or Added.
Use the rendered view to review wording with people who do not read Markdown, and the source view when every character counts.
How it works
- Source lines: both texts are split into lines and compared with the diff library. Windows and Unix line endings and a missing final newline do not count as changes.
- Rendered: each document is split into its top-level blocks (headings, paragraphs, lists, tables, code blocks), the blocks are compared, and every block is rendered on its own and cleaned before it is shown.
- Ignoring whitespace compares lines or blocks by their words alone, so re-wrapped or re-indented text is not reported as changed.
- The comparison runs in the background, so typing stays responsive even for long documents.
Questions
Why is a whole paragraph marked when I changed one word?
The rendered view compares whole blocks, so a changed paragraph appears twice: the old one marked Removed and the new one marked Added. Switch to Source lines to see the change down to the line.
Why does a reference-style link not work in the rendered view?
Each block is rendered on its own, so a link written as [text][ref] whose definition sits in another block is shown as plain text there. The source view is not affected.
How large can the documents be?
Each side takes up to 1 MB of text. Both stay in your browser; nothing is uploaded.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.