Text & Docs

Text Diff

Compare and edit two text files locally. Highlight inline changes, navigate differences, copy difference blocks between sides, adjust comparison rules and export files or reports.

About this tool

Compare two versions of a text or file, locate line and character changes, and edit either side.

Filter differences using whitespace, case and other rules, then reconcile changes block by block.

Best use cases

  • Review versions of source code, configuration, logs or documents and reconcile changes block by block.
  • Choose a file encoding, preserve BOM and line endings, and export a report or explicitly save a local comparison record.

How to use it

  1. Paste text, open files or drop them onto either side. Comparison updates in the background.
  2. Review changes with navigation, filters and rules; copy lines or difference blocks to the other side when needed.
  3. Save the files, or export reports and comparison records.

Scope and limits

  • Supports UTF-8, UTF-16 LE/BE, GB18030, GBK, Big5, Windows-1252 and ISO-8859-1. Select legacy encodings explicitly; saving rejects unrepresentable characters.
  • Select text inside ZIP, or extract text from PDF and DOCX and save it as text. Scanned PDFs require OCR, which is not supported.
  • Inputs exceeding 10 MiB or 100,000 lines per side ask before continuing. Complex content may use simplified alignment, with an explanation shown.

Data processing

Text and files are processed locally in your browser.

Related tools

More in this category