Compare two texts line by line. See added (green), removed (red), and modified (yellow) lines. View stats and clear or swap inputs.
Paste two texts into the left and right panels, then click Compare. The tool splits both texts by newlines and compares line by line. Added lines (present only on the right) are shown in green. Removed lines (present only on the left) are shown in red. Modified lines (different content) are shown in yellow. Unchanged lines appear with no background.
Compare code snippets, config files, or documents before and after changes. Useful for code reviews, debugging, and document versioning. All comparison runs in your browser—nothing is uploaded.
.env, nginx.conf, or docker-compose.yml files between environments.Yes. The entire comparison runs client-side in your browser using JavaScript. No text is sent to any server, stored, or logged. You can verify this by disconnecting from the internet and running a comparison—it still works.
A line diff (what this tool uses) compares entire lines and marks each line as added, removed, modified, or unchanged. A word diff goes further and highlights individual changed words within a modified line. Line diffs are faster to scan for structural changes, while word diffs are better for copyediting. This tool focuses on line-level diffing for speed and clarity.
Because the tool runs entirely in your browser, performance depends on your device. For most modern machines, comparing files up to 10,000 lines is nearly instant. For very large files (50,000+ lines), consider splitting them into sections or using a dedicated CLI tool like diff or git diff.