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:
- Two columns, original on the left, modified on the right.
- Line numbers in the gutter for both sides — non-aligned for added/removed lines, so the eye can follow.
- ± marker column next to each line indicating the operation.
- Color-coded backgrounds — green for added, red for removed, neutral for unchanged.
- Word-level highlights within changed lines — the specific tokens that differ get a stronger background tint.
- Synced scroll between the two columns.
How to use it like the GitHub compare view
- Paste your "before" version on the left, "after" on the right
- Make sure Side-by-side is selected in the View toolbar (it is the default)
- Click Compare — the diff renders with line numbers, ± markers, color, and word-level highlights
- Use the ▼ ▲ buttons (or
n/Shift+N) to jump to next/previous change
Demo
What freediffchecker.app does that GitHub does not
- Works without a Git repo. Compare any two blobs of text from anywhere — Slack messages, copy-pasted log lines, JSON blobs from API tools.
- Works on private content. Nothing uploaded; safe for code GitHub itself never sees.
- Three view modes. Side-by-side (the GitHub view), inline, and unified patch — switch with one click.
- Four ignore flags. Whitespace, case, trailing whitespace, blank lines — independently toggleable.
- Patch export. Save the diff as a standard
.patch/.difffile, or as a self-contained.htmlfor sharing.
What GitHub does that freediffchecker.app does not yet
- Comments anchored to specific lines — that is a code-review feature, not a diff feature
- File tree navigation — only relevant for multi-file diffs (folder diff is on the Pro roadmap)
- Suggested edits — a code-review feature
- Folder / repo diff — coming as a Pro feature
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 ›