A private text comparison tool

Online Compare Text is a free tool that helps you find differences between two pieces of text - code, articles, documents, or any other content. Paste two versions, click Compare, and every added, removed, and changed line is highlighted instantly, with word-level detail.

Privacy first

Unlike most comparison tools that upload your content to a server, everything here runs locally in your browser via a Web Worker. Your text never leaves your device. This makes the tool ideal for sensitive documents, proprietary code, and any content you prefer to keep private.

Built for real use

The tool supports unified and side-by-side views, Git-style change highlighting, previous/next navigation between change blocks, diff statistics, and file upload for common plain-text formats (.txt, .md, .json, .csv, .log). The diff engine runs off the main thread, so even large documents compare quickly.

Who runs this site

Online Compare Text is an independent project, built and maintained by an independent developer. It is not owned by, funded by, or affiliated with any company that has an interest in the content you compare. The tool is free to use, with no paid tier, no account, and no usage limit - there is no advertising on the site either.

You do not have to take the privacy claim on trust. Open your browser's developer tools, switch to the Network tab, and run a comparison: no request carrying your text is ever sent. The comparison engine is downloaded once when the page loads, and everything after that happens on your own machine. You can watch it happen.

Why it exists

Comparing two versions of a document should not require uploading it somewhere first. Most online diff tools send your text to a server, which means you have to decide whether the convenience is worth exposing a contract, a draft, a log file, or a proprietary source file. This tool was built so that decision never has to be made: the comparison is pure client-side computation, so there is nothing to expose.

How the comparison works

The site runs the diff library inside a Web Worker, off the main thread. A line-level pass first identifies which lines were added, removed, or kept; a word-level pass then refines changed lines down to the individual words that differ. Because the worker is a separate thread, large documents are processed without freezing the interface. No network request carries your comparison input. The only data that leaves the page is the usage analytics described in the Privacy Policy, which never include the text you are comparing.

Contact

Bug reports, feature requests, and corrections are all welcome. Email support@onlinecomparetext.com. If you have found something inaccurate on this page or on one of the tool pages, please say so and it will be corrected.

See also the Privacy Policy and the Terms of Use.