Developer tools

Diff Checker

Compare two blocks of text or code side by side with line, word, or character highlighting. Optionally ignore whitespace or case. Runs in your browser—completely private.

View modeView
GranularityLevel

+2 added

2 removed

Diff result

Original
Modified
1function greet(name) {
1function greet(name) {
2 return "Hello, " + name;
2 return `Hello, ${name}!`;
3}
3}
4
4
5console.log(greet("world"));
5console.log(greet("LiveTechHacks"));

What Is a Diff Checker?

A diff checker compares two blocks of text or code and highlights what changed. Use it as an online diff checker for code reviews, config edits, JSON/XML/YAML documents, CSV lists, SQL scripts, or any string comparison where you need clear additions and deletions.

This free tool runs a Myers-style diff in your browser. Choose side-by-side or unified output, switch between line, word, and character granularity, and optionally ignore whitespace or case. Nothing is uploaded.

Side-by-Side, Unified, and Patch Output

Side-by-side comparison keeps original and modified text aligned with line highlighting. Unified view streams changes in one pane—closer to git diff reading. You can also copy a unified patch for sharing or applying elsewhere.

Line, Word, and Character Diffs

Line mode works like a classic code diff checker. Word and character modes add finer highlighting inside changed lines—helpful for string diffs, HTML snippets, or small typo hunts. Ignore whitespace when indentation noise hides real edits.

Diff Checker FAQs

What is a diff checker?

A diff checker compares two versions of text or code and highlights additions and deletions. This online tool supports side-by-side and unified views with line, word, or character granularity.

Can I use this as a JSON, XML, YAML, HTML, CSV, or SQL diff checker?

Yes. Paste any text-based content—JSON, XML, YAML, HTML, CSV, SQL, or plain lists—and compare the two sides. The checker treats everything as text, so formatting differences still show unless you ignore whitespace.

What is the difference between line, word, and character diff?

Line mode highlights whole lines (similar to git diff). Word mode marks changed words within a line. Character mode shows the finest edits, useful for string and character-level differences.

Does ignore whitespace or case change the result?

Ignore whitespace collapses repeated spaces/tabs for comparison. Ignore case treats upper and lower case as equal. The displayed text still comes from your inputs; only matching changes.

Is this a three-way merge or conflict resolver?

No. This page is a two-way online diff checker for inspection. Three-way merges and conflict resolution belong in git or dedicated merge tools after you review the differences.

Is my text uploaded?

No. Comparison runs in your browser. Nothing is sent to LiveTechHacks—free and completely private.

Related Developer & SEO Tools

Other LiveTechHacks utilities that also run in your browser.

JWT Decoder

Decode JWT tokens instantly and inspect the header, payload, claims, signature details, and expiration time in a readable format.

Open Tool

Slug Generator

Turn any title or phrase into a clean, SEO-friendly URL slug. Accents, symbols, and optional stop words are handled locally in your browser.

Open Tool

Passphrase Generator

Generate strong, memorable passphrases from the EFF diceware wordlist. Pick your word count and separator. Runs offline — nothing is ever transmitted.

Open Tool

Cron Expression Generator

Build cron expressions visually and preview the next run times instantly. Supports standard crontab, Quartz, Spring and AWS syntax. Free, with no sign-up.

Open Tool

YAML ↔ JSON Converter

Convert YAML to JSON and JSON to YAML instantly, with validation and error highlighting. Works with Kubernetes, OpenAPI and Docker Compose files.

Open Tool

UUID Generator

Generate random UUID v4, v1 and v7 identifiers in bulk, up to 1,000 at a time. Copy or download instantly in your browser.

Open Tool

Epoch Converter

Convert Unix timestamps to readable dates and back, in seconds or milliseconds. Live clock, timezones, and code snippets.

Open Tool

Base64 Encoder & Decoder

Encode and decode Base64 strings, files and images instantly. Supports base64url and data URIs in your browser.

Open Tool

Hex to RGB Converter

Convert hex colour codes to RGB, RGBA, HSL and CMYK instantly with a live preview swatch and code snippets.

Open Tool

CSV ↔ JSON Converter

Convert CSV to JSON and JSON to CSV instantly. Custom delimiters, headers, quoted fields, and nested object flattening.

Open Tool

HTML Minifier

Minify HTML to cut page weight. Strip comments, collapse whitespace, and review before-and-after size — free in your browser.

Open Tool

Case Converter

Convert text between uppercase, lowercase, sentence case, title case, camelCase, and snake_case. Supports AP and Chicago title style.

Open Tool

JSON Formatter & Validator

Format, validate and beautify JSON with a collapsible tree view and line/column error reporting. Free, private, no sign-up.

Open Tool

Markdown to HTML Converter

Convert Markdown to clean HTML with a live side-by-side preview. Supports GFM, tables, and code highlighting.

Open Tool

XML Formatter Online

Format, indent and validate XML with error highlighting and a collapsible tree view. Works with SOAP, RSS, and sitemaps.

Open Tool

Binary to Decimal Converter

Convert between binary, decimal, hex, and octal with step-by-step working. Supports signed values and bit widths.

Open Tool

Regex Tester

Test regular expressions live with match highlighting, capture groups, and plain-English explanations.

Open Tool

ASCII Table

Complete ASCII chart with decimal, hex, binary, and octal values—plus extended ASCII. Searchable and printable.

Open Tool

CSS Minifier

Minify CSS online—strip comments and whitespace, collapse shorthand, shorten colors, and see bytes saved.

Open Tool