Compare two texts side by side and see differences instantly. Highlight added, removed, and modified lines. Free, fast, and 100% client-side.
Text Diff is a free online tool that compares two blocks of text and highlights their differences. It shows added lines in green, removed lines in red, and unchanged lines in gray. Perfect for comparing code, documents, notes, and any text content. All processing happens entirely in your browser — no data is sent to any server.
Line mode compares entire lines and marks whole lines as added, removed, or unchanged. Character mode goes deeper and shows exactly which characters within each line were changed. Use Line mode for documents, Character mode for code.
No. All comparison happens entirely within your browser. We do not store, transmit, or log any of your input or output text.
Yes! Text Diff works with any plain text, including code, JSON, XML, CSV, markdown, and more. Character mode is especially useful for spotting small changes in code.
There is no artificial limit. The tool uses a native JavaScript diff algorithm that runs entirely in your browser. For very large texts (tens of thousands of lines), you may experience slower processing depending on your device performance.
Currently, Text Diff works with copy-pasted text. You can open any file in a text editor, select all, copy, and paste it into the input area. Support for direct file upload may be added in a future update.
No, Text Diff is designed for plain text only. Binary files (images, executables, archives) cannot be meaningfully compared as text. For binary comparisons, use dedicated tools like WinMerge or specialized hex diff utilities.
Git diff is command-line based and requires a Git repository. Text Diff is a visual, browser-based tool that works with any two text blocks without any setup. It is ideal for quick comparisons, non-technical users, or when you do not have Git installed.
Yes. Text Diff is fully responsive and works on smartphones, tablets, and desktops. The interface adapts to smaller screens by stacking the input areas vertically.