How Diff Checker works
Paste two blocks of text to see additions, deletions, and unchanged lines highlighted in unified or side-by-side view.
Uses the jsdiff library (loaded on demand) to compute line-level diffs with the O(ND) difference algorithm.
Questions
- Can I compare files?
- Paste the contents of any two text files into the original and modified panels to compare them.
- What diff algorithm is used?
- The tool uses the jsdiff library which implements an O(ND) difference algorithm for line-by-line comparison.
- Is my data sent to a server?
- No. The comparison runs entirely in your browser. Nothing is uploaded.
- Can I export the diff?
- Yes. Click the download button to save the diff output as a plain text file.
More Text & Data tools
- .env InspectorInspect, mask, and convert env files
- JSONPath ExplorerPull a value out of JSON by path
- cURL → fetchConvert curl commands to fetch()
- Markdown PreviewerLive GitHub-flavored markdown
- JSON FormatterValidate and pretty-print
- Base64Encode and decode
- Word CountCount, readability, stats
- TimestampUnix, ISO 8601, relative time
- Hash GeneratorSHA-1, SHA-256, SHA-512
- URL EncoderEncode, decode, parse URLs
- Text CaseUPPER, lower, Title, camelCase, more
- Character EntitiesHTML entities, Unicode, ASCII lookup
- JSON to TypeScriptGenerate TypeScript interfaces from JSON
- JWT DecoderInspect JSON Web Tokens
- Page WeightWeigh a page: bytes, grade, Core Web Vitals, HAR diff
- SQL Viewer & CopyOpen a .sql file, read it, copy it
- SQL Formatter & MinifyBeautify or compact SQL
- SQL SplitterSplit a migration into statements
- SQL Pre-flight CheckCatch RLS gaps & risky SQL
- Base ConverterBinary, octal, decimal, hex, bitwise
- Unicode InspectorCode points, bytes, invisible characters