Tool overview
What is a Text Diff Viewer?
A text diff viewer compares two strings or documents and highlights added, removed, and changed lines side by side.
Why use this Text Diff tool?
Review config changes, prompt revisions, or log snippets locally when you need a quick visual diff without opening a full VCS UI.
Key Features
Side-by-side compare, change highlighting, client-side privacy, and fast paste-and-compare workflow.
How to Use
Follow these steps to get accurate results from the tool interface above.
- Paste the original text into the left (Original) panel and the revised text into the right (Modified) panel.
- The diff view highlights added lines in green, removed lines in red, and modified lines with inline character-level emphasis.
- Scroll either panel—the views stay synchronized for long documents.
- Copy individual panel contents using the panel toolbar when you need to extract only one side.
- Clear both panels to reset, or pipe output from another tool into either side via the workspace pipe action.
Text Diff Input Reference
Line-based diffing is sensitive to invisible characters and newline conventions. These inputs change comparison results.
| Feature / Context | Valid Syntax Example | Common Pitfall / Invalid Example |
|---|---|---|
| Unix Line Endings | line one\nline two | line one\r\nline two (mixed)CRLF vs LF marks every line as changed when only terminators differ—normalize line endings first. |
| Trailing Whitespace | "value" | "value "Spaces after the last visible character trigger modified-line highlights—trim if whitespace is insignificant. |
| Tab vs Spaces | indent | \tindentIndentation changes appear as full-line modifications even when logic is identical. |
| Empty Lines | block\n\nnext | block\nnextBlank lines count as content lines—removing a blank line shows a deletion, not a no-op. |
Frequently Asked Questions
Expandable answers for common debugging bottlenecks and data privacy questions.
Related tools
Explore other related utilities that complement this tool.
Official Documentation & References
Authoritative specifications and platform documentation for this utility.