Text Diff
Client-sideNewCompare two texts line by line — see added and removed lines with a unified-style diff.
Text Diff compares two blocks of text line by line in your browser on Toolverse by RS and marks removed lines with “-” and added lines with “+” — nothing is uploaded.
Examples
Key takeaways
- LCS line diff — the same algorithm family git uses
- Unified-style output: -, +, and context lines with a summary count
- Whitespace-sensitive: trailing spaces and tabs register as changes
- Both sides stay in your browser — useful for contracts and configs
What is a text diff?
A text diff is a line-by-line comparison of two versions of a text, showing which lines were added, removed, or left unchanged.
This tool computes a longest-common-subsequence (LCS) diff over lines — the same family of algorithm used by git. Output uses unified-style markers: “- ” for lines only in the original, “+ ” for lines only in the changed version, and two spaces for context. Comparison is whitespace-sensitive, because trailing spaces and tab changes are real changes in configs and code.
Features
LCS line algorithm
Minimal add/remove sets via longest common subsequence, like git's default diff.
Unified-style output
Familiar -, +, and context markers with an added/removed summary.
Whitespace-sensitive
Trailing spaces and tab changes surface as changes — critical for configs.
Private comparison
Both sides are processed locally and never uploaded.
How it works
Paste the original
The left pane holds the before version.
Paste the changed version
The right pane holds the after version.
Read the diff
Removed lines show “-”, added show “+”, context stays plain.
Example walkthroughs
Config change
One changed line appears as “- port: 8080” and “+ port: 3000”; the rest is context.
port: 8080 host: localhost debug: false
Added lines
The new line shows as “+ step three” with zero removals.
step one step two
Use cases
Review config edits
Confirm a deployment change touched only the keys you intended before shipping.
Compare document versions
Find edits between two exported versions when change tracking was not on.
Code snippets
Quick line diff in the shell
bashThe same unified format this tool prints, from standard CLI tools.
diff --unified before.txt after.txt # or with git, no repo required: git diff --no-index before.txt after.txt
Common errors
Every line shows as changed
Cause: Line endings differ (CRLF vs LF) or indentation was reformatted.
Fix: Normalize line endings or run your formatter on both versions first.
A tiny edit shows the whole line replaced
Cause: Line diffs mark the full line — there is no character-level highlight.
Fix: Read the -/+ pair together to spot the in-line change.
About Text Diff
Text Diff is a private compare workspace for two versions of anything line-based: config files, SQL, contracts, meeting notes, environment files, or generated output before and after a change. Paste the original on the left and the changed version on the right — the diff renders with removed lines marked “-”, added lines marked “+”, and a summary of how many lines changed.
Searches for “text compare” and “diff checker” usually mean one of two jobs: verifying that a config change touched only the intended lines, or finding what a collaborator edited in a document with tracking off. A line-oriented diff answers both faster than reading side by side.
The comparison is deliberately whitespace-sensitive. In YAML, .env files, and Makefiles, an invisible trailing space or a tab-for-spaces swap is a real change that can break parsing — a diff that “helpfully” ignores whitespace hides exactly the bug you are hunting. If noise from formatting bothers you, normalize with Case Converter or your formatter first, then diff.
Both inputs stay on your device. Diffing is a moment when sensitive material — credentials in configs, unreleased contract terms — is most likely to be pasted somewhere, so the client-side privacy model matters here more than almost anywhere else on the site.
Best practice: diff at the smallest meaningful scope (one file or section at a time), and remember the limit of a line diff — a one-character edit shows as the whole line removed and re-added.
Frequently asked questions
Is my text uploaded when I compare?
No. The diff computes entirely in your browser on Toolverse by RS — both versions stay on your device, which matters for contracts and configs.
Which diff algorithm is used?
A longest-common-subsequence (LCS) diff over lines — the same family git uses — which yields the minimal set of added and removed lines.
Why do identical-looking lines show as different?
Invisible differences: trailing spaces, tabs vs spaces, or CRLF vs LF endings. The comparison is whitespace-sensitive on purpose.
Is there a size limit?
Yes — 5,000 lines per side, which keeps the LCS computation fast enough to never freeze the tab.
Related tools
Case Converter
Convert text between UPPERCASE, lowercase, Title Case, camelCase, snake_case, and more.
Word Counter
Count words, characters, sentences, and paragraphs with reading time — live and private.
Slug Generator
Turn titles into clean, SEO-friendly URL slugs — lowercase, hyphenated, accents stripped.
Lorem Ipsum Generator
Generate placeholder text by paragraphs, sentences, or words — deterministic and offline-friendly.
Popular tools
JSON Formatter
Format, beautify, and minify JSON in your browser. Free, private, and instant — no upload to a server.
JSON Validator
Validate JSON instantly in your browser. See type, size, and node counts — or exact parse errors with line and column.
JSON Viewer
Explore JSON as an interactive tree with paths, types, and expandable nodes — all processed locally in your browser.
Base64 Encode / Decode
Encode UTF-8 text to Base64 or decode Base64 back to text — instantly in your browser.
Newest tools
Image Compressor
Compress JPG, PNG, and WebP images in your browser with a quality slider — private, no upload.
Image Resizer
Resize images by width or height in your browser — keep aspect ratio or stretch to exact pixels.
Image Converter
Convert images between PNG, JPG, and WebP in your browser — private, no upload.
Image Cropper
Crop images by pixel coordinates in your browser — JPG, PNG, WebP, private, no upload.
Explore more
Guides & articles
Private text tools for writers and developers
Convert case, count words, diff drafts, and slugify titles in your browser — without uploading manuscripts to a third-party site.
Diffing text and configs notes on the RS Roshi blog
Practical write-ups around diffing text and configs.
Platform documentation
Shortcuts, limits, and how client-side tools work.