Syntax highlighting — Highlights code across dozens of programming and markup languages.
Git integration — Shows file modifications and Git changes in the left sidebar.
Automatic paging — Pipes output to a pager for large files, acts as drop-in cat replacement.
Non-printable character display — Shows and highlights whitespace and control characters with the -A flag.
bat is a drop-in cat replacement that adds syntax highlighting and Git awareness without breaking existing workflows. It automatically detects when output is piped and falls back to plain text, making it safe to alias to cat. The project has massive community adoption with 58k stars and works across all major platforms.