Skip to content
Developer & CodeLocal · Stays on device

Patch Previewer

Preview a git diff or patch file as a readable unified or side-by-side view, with per-file added and removed line counts.

  • git diff, git format-patch, diff -u (unified)
  • Free to use
  • No sign-up or watermark
patch-previewerOn this device
1
2
3
4
5
6
7
8
9
10
1
2
3
4
5
6
7
8
9
10
git diffgit format-patchdiff -u (unified)
Open Patch Previewer

About this tool

Paste the output of git diff, a .patch file from git format-patch or any unified diff (diff -u) and see exactly what it changes before you apply it. Each file is listed with its status (modified, added, deleted, renamed, binary or mode change) and its count of added and removed lines, and every hunk is shown with old and new line numbers.

Switch between the familiar unified view and a side-by-side view that pairs removed lines with the lines that replaced them. Hunks that end before their header says they should are flagged, which usually means the patch was cut off or edited by hand. The patch is only displayed — nothing is applied to any files. Everything runs in your browser. What you paste is never uploaded, logged or stored.

  1. Input

    Your code or text

    git diff, git format-patch, diff -u (unified)

  2. Processing

    Processed in this browser

    Instant, in-browser. Nothing is uploaded.

  3. Output

    Your result

    Ready to download or copy

Local processing pipelineInstant, in-browser

How to use it

  1. 1

    Paste a patch or open a .diff/.patch file.

  2. 2

    Read the per-file summary of added and removed lines.

  3. 3

    Switch between Unified and Side by side, and collapse files you’ve reviewed.

Zero-upload architecture

How to use Patch Previewer for free, with no upload

Free, with no sign-up or watermark · Your files stay on your device

  1. 1

    Open Patch Previewer

    Launch the app and add your file. There is nothing to install and no account to create.

  2. 2

    Work through it

    Read the per-file summary of added and removed lines.

  3. 3

    Get your result

    Switch between Unified and Side by side, and collapse files you’ve reviewed.

  • Local

    JSON Diff Tool

    Compare two JSON documents structurally: added, removed and changed values with JSON Pointer paths, side-by-side highlights and a JSON Patch export.

    Open tool
  • Local

    Environment File Diff

    Compare two .env files to find variables missing from one, values that differ and ones that match, with secrets masked.

    Open tool
  • Local

    Git Command Builder

    Pick a task such as undoing a commit, renaming a branch or squashing, and get the exact git commands with explanations and danger warnings.

    Open tool
  • Local

    Diff Checker

    Compare two texts or code snippets line by line, word by word or character by character, side by side or as a unified diff.

    Open tool