Diff Tools

diff2html-cli – generate HTML diff reports

diff2html-cli converts conventional diff output into HTML documents that can be viewed in a web browser. It accepts unified diffs and output generated by Git, providing a more accessible presentation of changes than raw terminal output.

The software is particularly useful when sharing code comparisons with people who do not have access to the original repository. Its generated reports combine the familiar appearance of GitHub-style diffs with configurable visual and navigational features. Users can also supply their own HTML templates to integrate the output into documentation or automated reporting systems.

This is free and open source software.

Key Features

  • Accepts unified diff and Git diff input.
  • Line-by-line and side-by-side comparison layouts.
  • Displays original and modified line numbers.
  • Word-level and character-level highlighting of changes.
  • Syntax highlighting for source code.
  • Configurable matching of similar lines and words.
  • File summary with expandable and collapsible content.
  • Checkboxes for marking files as viewed.
  • Synchronised horizontal scrolling.
  • Light, dark and automatic colour schemes.
  • Configurable limits on the size of displayed differences.
  • Exclude selected files from generated reports.
  • Custom HTML wrapper templates and document titles.
  • Save generated reports to files or open them in a browser.
  • Pass additional comparison arguments directly to Git.

Website: github.com/rtfpessoa/diff2html-cli
Support:
Developer: Rodrigo Fernandes
License: MIT License

Options for diff2html

diff2html-cli is written in TypeScript. Learn TypeScript with our recommended free books and free tutorials.


Related Software

Terminal-Based Diff Tools
difftasticStructural diff tool that compares files based on their syntax
hunkTerminal diff viewer with syntax highlighting and side-by-side views
diff-so-fancyAttractive diffs with diff-highlight and more
deltaViewer for git and diff output
icdiffAn improved colored diff
diffoscopeIn-depth comparison of files, archives, and directories
colordiffWrapper for diff with pretty syntax highlighting
diffsitterSemantic diff tool
objdiffLocal diffing tool for decompilation project
ydiffTool to view colored, incremental diff in a version controlled workspace
diffrWord-by-word diff highlighting utility
dyffdiff tool for YAML files
WdiffWordwise implementation of diff
dwdiffdiff program that operates at the word level
diffymlCompares YAML documents by their structure
oyoStep-through diff viewer
diff2html-cliGenerate HTML diffs
biodiffTerminal-based binary diff viewer
dirdiffCompute the differences between two directories
csvdiffFast diff tool for comparing CSV files
VBinDiffVisual binary diff
riffWrapper around diff
csv-diffDiffing CSV and JSON files
xmldiffCompare XML documents
PatdiffFile diff using the Patience Diff algorithm
dead-ringerBinary diff utility
sesdiffGenerates a shortest edit script
semdiffSemantic diff tool written in Rust

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted