TL;DR: Paste two pieces of text and see a line-by-line diff with additions in green and deletions in red — pure browser.
Compare text online for free — paste two versions of text or code and get a line-by-line diff with additions in green and deletions in red. Perfect for code review.
Like the rest of the 179-tool PrivaTools suite, Text Diff / Comparator is MIT-licensed and self-hostable. The public demo deletes your file as soon as the response leaves the server — verifiable in the open-source codebase on GitHub.
The tool uses a line-by-line diff algorithm similar to Unix diff, highlighting additions, deletions, and modifications with color coding.
Yes. Upload two text files instead of pasting. Supported formats include .txt, .csv, .json, .xml, .html, .css, .js, .py, and other plain-text formats.
Each file can be up to 500 MB. Very large files may take a few seconds to process the diff.
Yes. The diff viewer works with any plain-text format. It highlights changes line by line, making it useful for comparing code, configs, or data files.
Working with PDFs too? Try our Merge PDF, Compress PDF, PDF to Word, or all 175+ tools.