# diff2html-cli
> Parse git diffs as JSON and generate pretty HTML

## Summary
Converts git diffs into pretty HTML output with side-by-side or line-by-line views for easier code review.

## Capabilities
- Parse git diffs and output as HTML
- Generate side-by-side diff views
- Output diffs as JSON for programmatic use
- Support for line-by-line and side-by-side views
- Open generated HTML directly in browser

## When to Use
- User wants to visualize git diffs as HTML
- User needs to share readable diffs with non-technical people
- User wants pretty diff output for documentation

## When NOT to Use
- User only needs terminal-based diff viewing
- User already has a GUI git client

## Related Tools
- [delta](/tools/delta) (alternative): delta provides terminal-based diff highlighting

---
Source: https://littlescripts.sh/tools/diff2html-cli
