Text Diff
Compare two pieces of text and see exactly what changed. Switch between line-level and word-level granularity. Insertions are shown in green, deletions in red, with running counts.
+2−2= 1
a.txt45 chars
b.txt45 chars
diff.patch5 ops
- The quick brown fox - jumps over the lazy dog. + The quick red fox + jumps over the sleepy dog.
runtime
Browser-local execution
Inputs stay inside the current tab unless you copy, download or explicitly export.
memory
Session handoff
Magic Paste can pass input to a target tool through sessionStorage, never through the URL.
control
User-owned state
Favorites, recent tools and workflow history are local browser data you can clear from the browser.
smart handoff graph
session handoff readySuggested next moves
/text
.env Parser
Convert .env files to JSON or scrubbed .env.example templates.
/text
Markdown Preview
Preview Markdown and copy safe HTML for docs, changelogs and product notes.
/text
SQL Formatter
Format compact SQL queries with keyword casing, line breaks and copy output.
/text
Regex Tester
Test JavaScript regular expressions with live highlighting.
sponsor
Sponsor this toolFixed native slots for developer products. No third-party tracking, no popups, no layout shift.
01
How to use
- 01Paste the original on the left and the modified version on the right.
- 02Pick line- or word-granularity at the top.
- 03Read the unified diff in the bottom panel.
02
FAQ
- How is the diff computed?
- Using a longest-common-subsequence (LCS) algorithm over the chosen tokens (lines or whitespace-separated words). The whole computation runs in your browser.
03
Related tools
- /text→.env ParserConvert .env files to JSON or scrubbed .env.example templates.
- /text→Markdown PreviewPreview Markdown and copy safe HTML for docs, changelogs and product notes.
- /text→SQL FormatterFormat compact SQL queries with keyword casing, line breaks and copy output.
- /text→Regex TesterTest JavaScript regular expressions with live highlighting.