Text Comparison
Compare two text files side by side, highlight differences instantly
1
1
About Text Diff
Compare two blocks of text with aligned additions, deletions and unchanged lines, plus the original line numbers for each version. Move between change blocks and copy or download a unified .diff patch to review later. The comparison and export run locally in your browser; whitespace and line endings are preserved.
Common Uses
- Review document revisions before publishing.
- Compare code snippets, prompts, logs, or config files.
- Check translated text against a source draft.
- Find small edits in large copied text blocks.
FAQ
Is my text uploaded to MKDiff?
No. The diff calculation runs in your browser, so the text you paste stays on your device.
Can I compare code with this tool?
Yes. You can paste code, config files, logs, Markdown, or any plain text and compare the differences line by line.
What do the colors mean?
Green highlights added content, red highlights deleted content, and unchanged lines remain neutral.
Does Text Diff work on mobile?
Yes. The page is responsive, although large files are easier to review on a desktop screen.