Text Compare (Diff Checker)
Inline diffBetaCompare two texts or .txt/.md files: see added, removed, changed and moved lines with word and character highlights. Works with CJK. Runs in your browser.
Files are not uploaded · processed in your browser
Enter or load two texts above, then press Compare.
How to compare two texts
- Paste the original text on the left and the changed text on the right, or load .txt / .md files.
- Optionally ignore whitespace, letter case, or full-width/half-width differences.
- Press Compare. Red − lines are from the original, green + lines from the changed text, and ⟦ ⟧ marks exactly what changed.
- Copy the diff or download it as a .diff file to share or archive.
Tips
- “Changes only” collapses unchanged passages and keeps two lines of context around each change.
- To compare the text of two PDFs, use PDF Compare.
Privacy
Files you choose and text you enter are processed in your browser. They are not uploaded to our servers and we do not store them. Some tools download the code or data they need (such as OCR language data) from this site the first time you use them.
Read the privacy policyFAQ
Is my text uploaded anywhere?
No. The comparison runs entirely in your browser; your text and files never leave your device, so it is safe for contracts and drafts.
Does it show which words changed inside a line?
Yes. Changed lines are compared again word by word (English) or character by character (Chinese, Japanese, Korean, which have no spaces). Changed parts are wrapped in ⟦ ⟧.
How are changed, added, removed and moved lines counted?
Line by line. Similar lines at matching positions count as changed; lines only in the new text are added; lines only in the original are removed; identical lines that changed position are moved.
What does "ignore full-width / half-width" do?
It treats full-width and half-width letters, digits and katakana as the same (A and A, 1 and 1), which helps when texts come from different Asian-language systems.
Can I export the result?
You can copy or download a standard unified diff (.diff) that Git and patch understand.
How long can the texts be?
Up to 2,000,000 characters and 100,000 lines on each side. Documents with a few thousand lines usually finish within a second.
Related tools
- Paragraphs
Compare Word Documents
Compare two .docx files paragraph by paragraph: added, removed, edited, moved.
Heading and table changes
- Page by page
PDF Compare
Find text added, deleted or changed between two PDF versions, plus added or removed pages.
Compares text only
- Cell-level
Compare Excel Files
Compare two Excel or CSV files: changed cells, added and removed rows and columns.
Exports a diff report
- Auto structure
Plain Text to Markdown
Turn plain text into Markdown, detecting paragraphs, lists, code, tables and headings.
Opens .txt files