File Diff Checker
Paste two versions of a file and get the exact differences highlighted, green for insertions, red for deletions, amber for in-place changes. Works on code, configs, prose, CSV data and JSON. No download and no sign-up: paste and compare.
How to diff two files
-
1
Paste the original
Put the "before" version into the left panel.
-
2
Paste the modified version
Put the "after" version into the right panel.
-
3
Tune the comparison
Tick "ignore whitespace" to hide formatting-only changes, or "ignore case" to compare without letter case.
-
4
Read the result
Added, removed and changed lines are colour-coded in the comparison table, with a summary of additions, deletions and unchanged lines on top.
How the comparison works
The tool compares the two texts line by line in a single pass. A line is reported as modified when the content at the same position differs on both sides. There is no view mode to pick: the side-by-side table is the result.
- Grey rows are lines that match on both sides.
- Green rows are lines present only in the modified text.
- Red rows are lines present only in the original text.
- Amber rows are lines that exist in both texts but differ.
Because the comparison is positional, inserting a block of lines shifts everything below it, and those lines are reported as changed.
Ignoring what doesn’t matter
The tool offers two toggles to keep the comparison focused:
- Ignore whitespace, formatting-only changes won’t appear.
- Ignore case, useful for SQL keywords or configuration keys.
Algorithm
The comparison runs in a single pass, so results appear near-instantly even for large files. It does not attempt to find a longest common subsequence the way git diff does; two files with content added at the top will report the rest of the file as modified.
Common uses
- Code review before opening a PR, to sanity-check what you actually changed.
- Config auditing between a staging and production environment file.
- Content proofing between a draft and a final article.
- License comparison when upstream dependencies ship new LICENSE files.
- Data reconciliation across two CSV exports from different systems.
Common mistakes
- Diffing two minified files. They are one line each, so everything is reported as “whole line changed”. Pretty-print both sides before pasting.
- Diffing files with different line endings. CRLF and LF are compared as exact characters, so every line shows as changed; normalize the line endings before pasting.
- Confusing whitespace-only diffs with logic changes. Use the “ignore whitespace” toggle when a teammate reformatted a file.
Frequently Asked Questions
The text you paste is transmitted to our servers as part of the page request, because the comparison runs on the page. Nothing is uploaded as a file, but avoid pasting secrets you would not want to share.
No. The comparison is always line based. A minified JSON file is a single line, so any change reports the whole line as changed; format both sides before pasting to see only the real differences.
No. The tool is a visual comparison only: there is no patch export. If you need a patch file, compare the two files on your own machine with git diff --no-index and save the output.
There is no hard limit. Tens of thousands of lines are fine; very large files may take a couple of seconds before the comparison appears.
Related Tools
ASCII Table Reference
Full ASCII table from 0 to 127 with decimal, hex, octal, binary, standard names and HTML numeric-reference notation, including NUL, LF and DEL.
Color Palette Generator
Generate monochromatic, analogous, complementary, triadic or tetradic color palettes from a base HEX color and export copy-ready CSS variables.
HTML Character Reference
Searchable list of HTML entities, their named and numeric codes, and a one-click copy for special characters and symbols.
HEX Color Picker
Pick or enter a HEX colour and get RGB, HSL, approximate CMYK, relative luminance and contrast ratios against white and black.
FPS Counter
Measure browser FPS with requestAnimationFrame, smoothing, min/max frame rate, warnings and an optional graph. Runs locally with no upload or API.
JSON Formatter
Paste JSON to pretty-print with 2 or 4 spaces, minify it to compact output, or run a quick syntax check before copying the result.
Tool available in other languages
- أداة مطابقة ملفات [AR]
- Fildiffkontroll [SV]
- Verificador de Diferença de Arquivos [PT]
- 파일 차이 검사기 [KO]
- ファイル差異チェッカー [JA]
- Bestandverschilcontroleerder [NL]
- Alat Pemeriksa Perbedaan File [ID]
- Vérificateur de différences de fichiers [FR]
- Trình kiểm tra sự khác biệt giữa các tệp [VI]
- เครื่องมือตรวจสอบความแตกต่างของไฟล์ [TH]
- Datei-Diff-Prüfer [DE]
- Comparador de Diferencias de Archivos [ES]
- Program do porównywania plików [PL]
- Controllore delle differenze dei file [IT]
- Инструмент для проверки совпадения файлов [RU]
- Dosya Farkı Denetleyicisi [TR]
- 文件差异检查器 [ZH]