Skip to main content
Developer Utilities

Code Diff Checker

Compare text and source code side-by-side with real-time syntax highlighting and instant diff calculation.

Original Text
Modified Text
Enter text above to see the comparison
Tool Documentation & Guide

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

1Input Original and Modified Versions

Paste the base text or original code in the left editor and the modified version in the right editor, or upload local files.

2Choose Comparison Mode

Select "Side-by-Side" to view additions and deletions in parallel columns, or "Inline" for a combined unified patch view.

3Structural JSON Mode (Optional)

When comparing JSON, toggle "JSON Mode" to see an exact inventory of added, removed, changed, and reordered paths with RFC 6901 JSON pointers.

Structural JSON Diff Pointer Example
Input
Left: {"port": 8080}  ->  Right: {"port": 9090}
Output
~ changed: /port (8080 -> 9090)

The structural comparator analyzes JSON tokens directly, identifying exact value mutations and path references (~1 for slash, ~0 for tilde).

Input Capacity & Performance Bounds
  • 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.
Private Comparison Workspace
  • 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.