Runs in your browser · nothing is uploaded
Text Compare
Text compare for two versions of a document, code or JSON: paste or open both to see exactly what changed — line by line, with changed words highlighted.
Differences
Comparisons run in your browser in a background worker — nothing you paste or open is uploaded. Up to 5 MB per side.
Reading the results
Removed
Red lines exist only on the left. In the unified view they start with −.
Added
Green lines exist only on the right. In the unified view they start with +.
Modified
A line changed in place: both versions appear on one row, with the changed words or characters highlighted.
Unchanged stretches are folded, keeping three lines of context around each change. Use the arrows to jump between changes, or “Show unchanged lines” to see everything.
Frequently asked questions
How do I compare two text files?+
Click “Open file” on each side, or drop a file onto the box, or paste text. Differences appear straight away, side by side, with changed words highlighted. Files are read in your browser and never uploaded.
Can it ignore whitespace and capital letters?+
Yes. Choose “Ignore trailing spaces” or “Ignore all whitespace”, and tick “Ignore case”. Lines that only differ in those ways are treated as the same, but the original text is still shown.
Why do two files look the same but show every line changed?+
Usually line endings: Windows uses CRLF and macOS and Linux use LF. “Treat CRLF and LF as the same” is on by default; turn it off to see line-ending differences.
How does JSON comparison work?+
Both sides are parsed and compared value by value, so formatting and spacing don't matter. You get a list of paths that changed — like $.items[2].price — and a line view of both documents neatly formatted. Object key order can be ignored; array order always matters. Invalid JSON is reported with the line and column of the problem.
What is a unified diff?+
The standard text format for changes, used by Git and patch tools: lines starting with − were removed and lines starting with + were added, with a few unchanged lines around each change for context. Download it as a .diff file or copy it.
Is there a size limit?+
Each side can be up to 5 MB. Comparisons run in a background worker so the page stays responsive, and a long comparison can be canceled.
Is my text uploaded or stored?+
No. Everything is compared in your browser, nothing is sent to a server, and nothing is saved when you close the page. Exported reports are created on your device.
Can I compare Word documents or PDFs?+
Not as files. Open file accepts plain-text formats such as .txt, .md, .csv, .json, .xml, .html, .yml, .log and code files. For a Word document, copy the text from Word and paste it into each side. For PDFs, use the Compare PDFs tool, which pulls out the text and highlights the differences.
Can I see exactly which characters changed?+
Yes. Changed lines are highlighted word by word by default; switch Highlight to Characters to mark each changed letter, which helps with typos, numbers and punctuation. Use the arrow buttons to jump from one change to the next, or search both sides at once.
How do I save or share the comparison?+
Download an HTML report that opens in any browser with the differences colored in, download a .diff file, or copy the unified diff to paste into an email, ticket or code review. Everything is created on your device.
Is this a plagiarism checker?+
No. It only compares the two texts you give it and shows where they differ; it doesn't search the web or other documents. It can show how closely a rewrite follows an original you already have, but it doesn't give a similarity score.
More free Northlane tools
- Unit converterMetric, imperial and US units
- Word counterWords, characters, reading time
- JSON to YAML converterYAML, regex, cron, and .env tools
- Base64 decodeEncode UTF-8 text or files, decode Base64, and generate file checksums.
- UUID generatorGenerate cryptographically random version 4 UUIDs individually or in bulk.
- Epoch converterConvert seconds, milliseconds, or timezone-qualified dates in batches.
- Meta tag generatorGenerate escaped HTML metadata, canonical, Open Graph and Twitter tags.
- JSON formatterFormat, minify, validate, convert YAML and inspect object paths locally.
- Cron expression generatorBuild five-field cron schedules and preview the next ten runs in a timezone.
- Regex testerTest JavaScript patterns with highlights, capture groups and a replacement preview.
- All toolsBrowse the full collection