Tools/sharkdp/bat

bat

A cat clone with wings

61.1k ★+115/wkestablishedRustMIT OR Apache-2.0trending

The Lens

By Erik Loyd, SaaS CEO and former COO/CFO of an AWS Premier Partner.

Updated Sep 2026

bat is cat with syntax highlighting, line numbers and Git change markers built in. Type bat file.py and you get a color-coded, numbered view of the file, and long output goes to a pager automatically. Written in Rust by David Peter, who also wrote fd, and dual licensed MIT or Apache 2.0.

Pipe it into another command and it quietly behaves like plain cat, so scripts don't break. The README's recommended alias is alias cat='bat --paging=never'. Every major package manager carries it; on older Debian and Ubuntu releases the binary is called batcat.

Anyone who reads code in a terminal: install it. It costs nothing and changes nothing about how you work. The bat-extras companion scripts bring the same highlighting to grep, diff and man pages.

The catch is copy and paste. The line numbers and margin markers come along when you select text in the terminal. Use bat -p (or --plain) when you need clean output.

Free vs Self-Hosted vs Paid

fully free

Free: Everything. Dual licensed MIT or Apache 2.0, your choice.

Self-hosted: A single binary from apt, Homebrew, cargo, WinGet, Chocolatey, Scoop and most other package managers.

Paid: None.

Completely free, MIT or Apache 2.0.

What to do by team size

Solo
free
Small team
free
Medium team
free
Large team
free
Self-hosting ops:trivial

Get tools like this every Wednesday

One featured tool, three on the radar. No fluff.

Similar Tools

Score
91/100 · A+
Adoption30/30
Maintenance25/25
Community11/20
License15/15
Analysis10/10

A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores

Trust Signals

High adoption: 58,238 starsActive community: 1,521 forksPermissive license (Apache-2.0)

License: MIT OR Apache-2.0

Dual licensed: choose MIT or Apache 2.0. Use freely, including commercial.

Commercial use: ✓ Yes

About

Stars
61,108
Forks
3,051

Explore Further

More tools in the directory