Compare two text blocks and highlight exactly what changed.
A fast, browser-based text diff checker and code comparison utility. Compare two versions of any text, source code, JSON, YAML, HTML, CSS, Markdown, or SQL side-by-side or in unified diff mode. Powered by the Myers difference algorithm with word-level and character-level inline change detection, whitespace normalization, and case-insensitive matching. Generates standard unified diff (.patch) files compatible with git apply and GNU patch. Features synchronized scrolling, syntax-aware line numbering, similarity metrics, and quick swap shortcuts. All comparison calculations execute 100% client-side in your browser, guaranteeing total privacy with zero data transmission.
Keywords: text diff, diff checker, diff viewer online, compare text online, online diff, unified diff, side by side diff, code diff, file compare, text compare, diff tool, patch generator, json diff, yaml diff, line diff, word diff, myers diff algorithm, git diff online, char diff, ignore whitespace diff
Tags: diff, compare, text, patch, changes, merge
Text Diff Checker is also known as: Online Text Diff Checker, Code Comparison Tool Online, Side-by-Side Diff Viewer, Unified Diff Generator, Git Patch Generator Online, File Difference Checker, Online Diff and Merge Viewer, Word Level Diff Checker.
Paste the original or baseline version of your text or code into the left editor panel (ORIGINAL).
Paste the updated or candidate version into the right editor panel (MODIFIED).
Click "Run Diff" or press ⌘↵ (Ctrl+Enter) to execute the Myers diff comparison algorithm instantly.
Switch between "Split View" (side-by-side synchronized columns) and "Unified View" (single-column git diff style) using the layout toggle or ⌘⇧L.
Adjust granularity between line, word, or character level to inspect intra-line token edits and typos.
Toggle comparison modifiers such as "Ignore Whitespace" (⌘⇧W) or "Ignore Case" to eliminate non-functional noise.
Click "Copy Patch" (⌘⇧C) or download a standard .patch file to apply changes directly via git apply or GNU patch.
Side-by-side split view with synchronized scrolling, gutter line numbers, and paired change blocks.
Unified diff view using standard +/- change notation matching git diff and patch specifications.
Intra-line word-level diffing: isolates and highlights exact modified words within replacement lines.
Character-level precision diffing: pinpoints single-character typos, punctuation shifts, and regex tweaks.
Configurable context lines: display from 0 to 50 unchanged surrounding lines per diff hunk.
Whitespace normalization: filter out leading indentation changes, trailing spaces, and CRLF vs LF differences.
Case-insensitive diff mode: match text regardless of letter casing while preserving original code rendering.
Longest Common Subsequence (LCS) similarity scoring: real-time percentage breakdown of textual parity.
Standard GNU patch and git apply compatible unified output export with customizable file header labels.
Automated language syntax heuristic detection for JSON, YAML, SQL, TypeScript, HTML, CSS, and Markdown.
Quick swap shortcuts (⌘⇧S) to invert original and modified inputs without manual copy-pasting.
Zero-latency 100% client-side execution: no text or code is ever transmitted to remote servers.
The Text Diff Checker supports 6 syntax formats and dialects for accurate parsing and processing.
Master .env formatting rules, resolve multiline string and certificate escaping bugs, manage .env precedence, and prevent secret leaks in CI/CD.
Resolve minified JavaScript bundle errors back to original TypeScript source code using VLQ-decoded source maps, hidden source maps, and stack trace resolvers.
A comprehensive developer guide to identifying and fixing GitHub Actions YAML syntax errors, matrix build bugs, expression interpolation traps, and concurrency race conditions.
Master the art of reading cryptic regular expressions by breaking patterns down into visual abstract syntax trees, grouping constructs, lookarounds, and quantifiers.
Master epoch timestamps, millisecond vs microsecond precision, RFC 3339 / ISO 8601 formatting, UTC storage rules, and prevent subtle timezone bugs across databases and APIs.
Master JSON formatting, RFC 8259 compliance, JSON Schema Draft 2020-12 validation, safe 64-bit integer handling, and high-throughput Node.js streaming.
Diagnose and fix syntax errors, missing resource limits, selector mismatches, and schema validation failures in Kubernetes manifests before deployment.
Resolve Git merge and rebase conflicts with confidence. Master standard vs diff3 conflict markers, 3-way merge logic, and conflict prevention strategies.
Translate Docker Compose stacks into production-ready Kubernetes manifests. Map services to Deployments, host volumes to PVCs, and env files to ConfigMaps.
A developer guide to Protocol Buffers wire format, decoding varints, resolving tag mismatches, and debugging corrupt binary gRPC and Kafka streams.
Understand NFA regular expression engine backtracking, diagnose exponential runtime traps, and fix Regular Expression Denial of Service (ReDoS) vulnerabilities.
Learn how to repair broken JSON from LLM outputs, APIs, and configs. Master automated AST recovery for trailing commas, single quotes, bare keys, and truncated streams.
Master TOML v1.0.0 configuration grammar, understand arrays of tables vs inline tables, parse Cargo.toml and pyproject.toml manifests, and serialize TOML across runtimes.
Master code diff algorithms (Myers, Patience, Histogram), unified diff patch anatomy (@@ coordinates), side-by-side vs inline comparison, and patch workflows.
Master XML formatting standards, well-formedness rules vs XSD validation, namespace resolution, CDATA handling, and server-side XXE attack prevention.
camelCase is a compound word writing convention where each constituent word begins with a capital letter without delimiter spaces, standard in JavaScript and modern software.
A diff is a data comparison algorithm and output format displaying line-by-line insertions, deletions, and modifications between text files.
Dotenv is a key-value configuration file convention standardized by the Twelve-Factor App methodology for injecting environment variables into application runtimes.
The IANA Time Zone Database (tzdb / Olson database) is the canonical global standard for historical and current timezone boundaries, UTC offsets, and Daylight Saving Time rules.
ISO 8601 is the international standard covering the exchange of date- and time-related data, establishing an unambiguous, lexicographically sortable date format.
A merge conflict occurs in distributed version control when concurrent, divergent modifications target the same file lines or structure and cannot be resolved automatically.
A stack trace is a structured report of the active execution call stack frames generated by runtimes when an unhandled error, exception, or panic occurs.
TOML is a minimal, human-readable configuration file format engineered for unambiguous semantics and direct mapping to hash tables.