Text Diff Tool - Character-level Comparison for Two Text Files
Compare two text files at character level with highlighted changes.
Efficient online diff tool to compare two text/code blocks in real time. Highlights additions, deletions, and edits with line numbers, wrapping, diff navigation, and merge actions for both sides.
How to use
Supported text types
Any plain text: code (.js, .py, .java), config (.json, .yaml, .xml), .txt, etc. If it is plain text, it can be compared.
How to input or upload
Use Upload Left/Right to pick a file, or paste into the editors. For best performance, keep files under ~10MB.
How to read the diff
Highlighting shows additions, deletions, and edits (exact styling depends on the Mergely theme).
How to merge to the other side
Use Merge to Left or Merge to Right to apply the current diff chunk—useful for reviews and doc edits.
Large files and performance
Large files may be slow; split or shrink files if it feels sluggish.
How to save or export
Use Copy for either side, or print/save from the browser. Save important work locally.