Text Diff
Compare two snippets side by side and see which lines were added or removed.
- 100% Free
- No account required
- Runs in your browser
- No data is uploaded
Not saved automatically
Private to this browser, not a cloud backup. Saves expire 7 days after the last save. Avoid saving sensitive data on shared devices.
Input
Paste the original and the changed, then click “Run tool”.
Original
Ln 1, Col 1Spaces: 2UTF-8Text6 bytes
Changed
Ln 1, Col 1Spaces: 2UTF-8Text5 bytes
Output
Line differences (read-only).
Read-only
TextLn 1, Col 1Spaces: 2UTF-80 bytes
Using the Text Diff
Overview
Compare two snippets side by side and see which lines were added or removed.
See exactly which lines changed between two versions of a config, log excerpt or paragraph.
How to use it
- Paste or type your Text into Input, drop a file onto it, or press Example to load a sample.
- Press Run tool, or ⌘ ↵ from anywhere on the page.
- Read the result in Output, then copy or download it. The Result tab has size, line counts and next steps.
Input
Two snippets.
Output
Line differences.
- Line-by-line comparison
- Added lines marked +
- Removed lines marked -
- Unchanged lines kept for context
Tips
- Add the g flag to list every match instead of only the first.
- Text Diff compares line by line: + marks an added line, - a removed one.
- Use the safe regex tester for patterns that might backtrack badly.
Keyboard shortcuts
- ⌘ ↵
- Run the tool
- ⌘ K
- Search every tool
- /
- Filter the sidebar