Text Diff
Compare two pieces of text and see exactly what changed. Line, word, or character level — all in your browser.
−3+4
Original
Modified
Diff
- The quick brown fox jumps over the lazy dog. + The quick brown fox jumps over the lazy cat. It was the best of times, it was the worst of times. - Hello world. + Hello snaptxt! TODO: add tests - TODO: fix the build + TODO: fix the build + TODO: ship it
How to use it
- 1Paste the original text on the left and the modified text on the right.
- 2Pick the diff granularity: Lines (most common), Words (prose), or Chars (tiny edits).
- 3The diff below highlights additions in green and removals in red.
Common use cases
- Sanity-check a config file change before deploying.
- Spot the difference between two log lines, API responses, or stack traces.
- Track what's changed in a piece of prose, copy, or contract text.
- Compare two versions of a generated artifact (formatted JSON, SQL, etc.).
Frequently asked questions
- What's the difference between line, word, and character diffs?
- Line diffs treat each line as a unit and show whole lines added or removed — best for code or configs. Word diffs split on whitespace, which reads naturally for prose. Character diffs highlight even tiny edits like a typo fix — useful when one line changed and you want to see exactly which character moved.
- Is my text uploaded?
- No. The diff runs entirely in your browser using the jsdiff library. Nothing leaves your device.
- Can I diff really long files?
- Yes, within reason. Browsers handle a few megabytes comfortably; multi-megabyte diffs may take a second to render.
- Does it support diffing JSON specifically?
- For semantic JSON diffing (key reordering, etc.) the JSON Formatter has a dedicated Diff mode that pretty-prints both sides first. This tool diffs the raw text you paste.
Related tools
Base64 Encode / Decode
Encode and decode text and files to and from Base64.
HTML Live Preview
Write HTML, CSS, and JavaScript and see the result instantly.
JSON Formatter
Format, validate, minify, diff, and explore JSON — with optional on-device AI that summarizes any payload in plain English.
JWT Decoder
Inspect the header, payload, and expiry of any JSON Web Token — with optional on-device AI that explains what the token grants in plain English.
SQL Formatter
Beautify, format, and minify SQL queries for any dialect — with optional on-device AI that explains what a query does in plain English.
Unix Timestamp Converter
Convert Unix timestamps to dates and back, in any timezone.
Hash Generator
Generate MD5, SHA-1, SHA-256, and SHA-512 hashes in your browser.
JSON to TypeScript
Generate TypeScript interfaces or type aliases from JSON.
Markdown to PDF
Convert Markdown to a beautifully styled PDF in your browser.
QR Code Generator
Make QR codes for websites, Wi-Fi passwords, contact cards, social handles, email, SMS, and more. Download as PNG or SVG — or as a ZIP with one branded QR per social platform.
Password Generator
Generate strong, secure passwords in your browser. Nothing is sent or saved to any server.
UUID / ULID Generator
Generate UUID v4, UUID v7, or ULID identifiers in bulk, instantly in your browser.
SVG to PNG / JPEG / WebP
Convert SVG to PNG, JPEG, or WebP at any size — quality slider, transparent or colored background, copy to clipboard. Free, in your browser.
URL Encoder / Decoder
Encode or decode URLs and query parameters with component-vs-full-URI scope, plus a query-string breakdown. Free, in your browser.
Regex Tester
Test JavaScript regular expressions with live highlighting and a capture-group inspector — plus an AI regex generator that turns plain-English descriptions into regex (on-device Gemini Nano).
Color Converter
Convert colors between HEX, RGB, HSL, HSV, and OKLCH, and generate tint, shade, and harmony palettes. Free, in your browser.
HTML ↔ Markdown Converter
Convert HTML to Markdown or Markdown to HTML with a live preview. GFM tables, fenced code blocks, inline formatting. Free, in your browser.
Cron Builder
Build cron expressions visually or describe the schedule in plain English and let on-device AI write it for you. Plain-English explanation, next 5 runs, presets.