Toolshub
convert · runs in your browser

Compare two large text files without uploading them

Diffs two text files of up to 10 MB each in the browser and writes either a unified .diff or a self-contained side-by-side HTML page.

$35 buyout · free up to 10 MB per file· 5 free runs a day

Files
No file chosen

Two files only, up to 10 MB each. Nothing is uploaded — this is the version for contracts and logs you cannot send anywhere.

Runs in this tab. Nothing is uploaded.

Result

Free tier: up to 10 MB per file, 2 files per run, 5 runs per day. A buyout for this tool is $35 once. Compare.

Licence: free tier.

What this page does differently

An online diff usually means pasting the file into somebody else’s server, which rules out the contract draft, the incident log and the exported configuration that started the question. This page reads both files locally and compares them line by line: strip the shared beginning and end, anchor on lines that occur once, and report the changes with a chosen amount of context. It writes a unified diff you can apply with patch, or an HTML page with both versions side by side for a colleague who does not read diffs.

compares two ten-megabyte files entirely in the tab and emits both a unified diff and a self-contained side-by-side page

Sample input and output

Run Case Size Notes
Input Two versions of a config export 219 B two small YAML exports with one changed value and one toggled flag
Output A unified diff 230 B one hunk with three lines of context, plus a closing count of added and removed lines

These are the demo numbers this page was built against, not a guarantee for every file.

What you can check yourself

The claim What the test showed
a single changed line in a 400-line file is one hunk, not a wall of output unit test changes line 200, asserts 199 unchanged lines are stripped from each end and exactly one hunk is produced
the side-by-side page references nothing outside itself test asserts the output starts with a doctype, contains line-number cells and no http or https reference
ignoring whitespace is a choice with three different answers test shows a trailing-space change as a difference under exact mode, ignored under trim, and inner spacing ignored under all

Questions

Why not use git or my editor?

Use them when the files are in a repository or on the same machine. This page is for the three cases they do not cover: a file you are contractually not allowed to upload, a one-off export that is not in any repository, and a comparison a non-technical colleague has to read, where a side-by-side HTML page beats a terminal.

What does each whitespace option actually ignore?

Exact compares every character, so a trailing space is a difference. Trim ignores leading and trailing whitespace, which makes a re-indented block look unchanged. All ignores whitespace inside the line too, so "foo bar" and "foobar" count as the same line; that is useful for tokenised dumps and dangerous for prose, so it is not the default.

What happens when the two files are identical?

The page says so instead of downloading an empty file. An empty diff looks like a failed run, and the line count gives you something to quote when the answer is "nothing changed".

How large a comparison is realistic?

Ten megabytes per file, and the page aborts with a clear message if the files differ in more than two hundred thousand lines. In practice the shared beginning and end are stripped first and the rest is anchored on unique lines, so a log with a handful of changed entries stays fast even when it is large.

Does it handle Word documents or PDFs?

No. Those are archives or page descriptions, not text, and a line diff of their bytes is noise. Convert to plain text first. The page also does not merge three versions or compare syntax trees; it compares lines, exactly and predictably.

Price

This tool is $35 once, for as long as the tool exists. One payment, not a subscription. The licence is stored in this browser; the transaction id restores it elsewhere.

Free: 5 runs a day, 10 MB a file, a batch of 2. Buyout: a batch of 50, 200 MB a file.

Related