freediffchecker.app
Open the tool ›

GitHub-Style Diff Viewer in Your Browser — for Any Two Text Blobs

GitHub’s compare and pull-request views set the standard for what a "good code diff" looks like — two columns side-by-side, line numbers in the gutter, additions in green, removals in red, word-level highlighting on changed lines, synced scrolling. freediffchecker.app replicates that exactly, but for any two arbitrary text blobs, not just files in a Git repo.

What "GitHub style" actually means

If you spend any time in code review, your eye is calibrated to the GitHub layout. Switching to a different diff convention costs a few seconds of re-orientation per diff. freediffchecker.app’s side-by-side view is intentionally close to the GitHub compare view:

How to use it like the GitHub compare view

  1. Paste your "before" version on the left, "after" on the right
  2. Make sure Side-by-side is selected in the View toolbar (it is the default)
  3. Click Compare — the diff renders with line numbers, ± markers, color, and word-level highlights
  4. Use the ▼ ▲ buttons (or n / Shift+N) to jump to next/previous change

Demo

function calculate(a, b) { - return a + b; + if (typeof a !== "number") throw new Error("a must be number"); + if (typeof b !== "number") throw new Error("b must be number"); + return a + b; }

What freediffchecker.app does that GitHub does not

What GitHub does that freediffchecker.app does not yet

For single-file or single-blob comparisons, the experience is the same as GitHub’s, but with no Git repo, no sign-up, and full privacy because the text stays in your browser.

FAQ

Can I get a GitHub-style diff for code that is not in a repo?

Yes — that is exactly what ${DOMAIN} does. Paste any two text blobs, click Compare, get the side-by-side GitHub-style rendering instantly. No Git, no repo, no setup.

Does ${DOMAIN} support syntax highlighting like GitHub does?

Not aggressively. The default is monospace text with diff-color backgrounds and word-level highlights. Strong syntax coloring can compete with the diff signal, so ${DOMAIN} keeps it minimal. The structure (line numbers, columns, marker, color) matches GitHub closely.

How wide does the page need to be for side-by-side?

Side-by-side renders cleanly at 1024 px+. On narrower screens the layout falls back gracefully; for phones, switch to Inline view, which uses a single column.

Can I download the side-by-side render to share?

Yes. Click Download → HTML to save a fully self-contained side-by-side rendering with inline CSS. Open it in any browser. No external assets, no internet needed.

Why does the gutter show different line numbers for the two sides?

Because they are different files. When a line is added on the right, the left gutter is blank for that row (the line did not exist on the left). Same convention as GitHub. It keeps both sides’ line numbering accurate to the source files.

Can I do a three-dot vs two-dot diff like GitHub?

Three-dot and two-dot diffs are Git concepts (merge-base vs tip comparisons). ${DOMAIN} compares whatever two blobs you paste — no Git history involved. For Git-aware diffs, use git diff or GitHub itself.

Ready to compare?

Open freediffchecker.app and paste your two texts — the diff runs in your browser, nothing uploaded.

Open freediffchecker.app ›

Related Freesuite tools

JSON FormatterFormat and validate JSON CSV ↔ JSONConvert between CSV and JSON Base64Encode/decode Base64 AI Token CounterLive token count for 100+ models AI Prompt TesterCompare LLMs side by side Files to PromptPack files into one LLM prompt Word CounterWords, chars, lines counter Case ConverterUPPER, lower, Title, camelCase