Spot every difference, instantly
Paste or upload two files and see exactly what changed — word-by-word, with syntax highlighting, merge tools, and export. Runs entirely in your browser.
Paste or upload two files and see exactly what changed — word-by-word, with syntax highlighting, merge tools, and export. Runs entirely in your browser.
TextFileCompare.com is a free, browser-based diff tool that lets you compare two text files or code blocks side-by-side in seconds. Whether you're a developer reviewing a pull request, a writer proofreading document versions, or a sysadmin validating config changes — our tool gives you fast, accurate, and completely private results. No account, no upload, no tracking.
Paste your content directly or upload files from your device. The tool supports plain text and 15+ programming languages with automatic language detection and full syntax highlighting.
Highlights exactly which words or characters changed within each line — ideal for proofreading or config review.
Auto-detects JavaScript, Python, PHP, HTML, JSON, SQL, YAML, and 10+ more. Manual override available.
Accept changes from left to right or right to left. Smart patch-based merge handles complex diffs gracefully.
All processing happens in your browser with JavaScript. Your content never leaves your device.
Download a unified diff patch, generate a styled HTML report, or copy the diff to your clipboard.
Your text, settings, and file names are saved in your browser — reload and pick up exactly where you left off.
Explore all tool capabilities on our features page.
New to the tool? Read our step-by-step how-to guide.
Learn about our mission and privacy commitment on the about page.
Questions or feedback? Get in touch with us.