# bat

> A cat(1) clone with wings.

Source: https://talira.ai/catalog/bat-msy8z9ks
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / cli / file viewing](https://talira.ai/categories/developer-tools/cli/file-viewing), [developer tools / terminal](https://talira.ai/categories/developer-tools/terminal)
- Platforms: macos, linux, windows, cli
- Licence: Apache-2.0
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes
- Creator: sharkdp

bat is a cat replacement with syntax highlighting for many languages, git integration that marks modified lines, display of non-printable characters, and automatic paging. When piped it behaves like plain cat, so it can be aliased safely.

## Links

- GitHub: https://github.com/sharkdp/bat

## Ways to install

### Package managers

- [WinGet](https://talira.ai/catalog/winget-g927bz13.md): <https://github.com/microsoft/winget-pkgs/tree/master/manifests/s/sharkdp/bat>[^1]
- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/bat>[^2]
- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/source/stable/rust-bat>[^3]
- [mise](https://talira.ai/catalog/mise-0axr08xw.md): <https://mise-versions.jdx.dev/tools/bat>[^4]

## Problems it solves

- reading source files with cat in the terminal is a wall of uncolored text
- want syntax highlighting when I print a file to the terminal
- see which lines in a file changed versus git while viewing it
- cat output scrolls off screen, I want automatic paging
- show hidden characters like tabs and carriage returns in a file
- colorize the preview pane in my fuzzy finder
- nicer man pages and help output with colors
- line numbers when dumping a file to the console

## Features

- syntax highlighting
- git modification markers
- automatic paging
- show non-printable characters
- themes
- plain cat behaviour when piped

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.78 out of 1.
Signals: maintenance 1.00, adoption 0.96, momentum 0.84, community 1.00, backing 0.20, extensibility 0.20.

- last commit 9 days ago
- 159 commits in the last 90 days
- latest release v0.26.1 11 months ago
- 61.3k GitHub stars
- 513 contributors
- accepts sponsorship (Github, Github, Github)
- created by sharkdp

## Alternatives

- [delta](https://talira.ai/catalog/delta-0rr39z93.md): A syntax-highlighting pager for git, diff, grep, rg --json, and blame output
- [Less](https://talira.ai/catalog/less-5dcq8wqz.md): It's CSS, with just a little more
- [lsd](https://talira.ai/catalog/lsd-pdv77kez.md): A rewrite of GNU ls with colours, icons, a tree view and git status.
- [eza](https://talira.ai/catalog/eza-116b46pv.md): A modern alternative to ls

## Sources

[^1]: https://github.com/sharkdp/bat/blob/master/README.md (checked 20 Nov 2026)
[^2]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^3]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 21 Nov 2026)
[^4]: https://mise-versions.jdx.dev/tools.json (checked 21 Nov 2026)
