Code Diff Checker
Compare text and source code side-by-side with real-time syntax highlighting and instant diff calculation.
Code & Text Diff Checker Guide
Compare source code, documents, and JSON structures side-by-side or inline.
Overview
The Diff Checker identifies textual and structural differences between two versions of text, markdown, configuration, or code. It features Side-by-Side and Unified Inline comparison views, syntax highlighting, and a dedicated Structural JSON Diff mode with RFC 6901 pointers.
How to Compare Text and Code
Paste the base text or original code in the left editor and the modified version in the right editor, or upload local files.
Select "Side-by-Side" to view additions and deletions in parallel columns, or "Inline" for a combined unified patch view.
When comparing JSON, toggle "JSON Mode" to see an exact inventory of added, removed, changed, and reordered paths with RFC 6901 JSON pointers.
Left: {"port": 8080} -> Right: {"port": 9090}~ changed: /port (8080 -> 9090)
The structural comparator analyzes JSON tokens directly, identifying exact value mutations and path references (~1 for slash, ~0 for tilde).
- Recommended input limit: up to 20,000 lines or 5 MB per document for optimal responsiveness.
- File upload accepts plain text, code, JSON, YAML, and configuration files.
- Optional shared comparisons are capped at 500 KB and expire after 7 days.
- Text comparison algorithms run 100% on your device in local memory.
- Pasted code and proprietary configurations are never transmitted or logged.
- Private share pages are excluded from advertising and telemetry rollouts.