Text Diff Tool - Character-level Comparison for Two Text Files
Compare two text files at character level with highlighted changes.
Efficient online text diff tool: compare code or text in real time with add/delete/edit highlighting, line numbers, navigation & merge actions. Ideal for code review & config checks.
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
Whole-line adds/deletes use line backgrounds; single-character edits show inline highlights (same as VS Code diff).
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.