Skip to content
aicoolies logo
bat logo

bat

A cat clone with wings

Modern replacement for the Unix cat command with syntax highlighting for 200+ languages, automatic paging, line numbers, Git integration showing file modifications, and themes including integration with terminal color schemes. Supports plain text output mode for piping. Extremely fast with Rust-based implementation. Can be used as a drop-in cat replacement via aliasing. 51K+ GitHub stars. Part of the modern CLI toolkit alongside fd, ripgrep, and eza.

About bat

Bat is a modern replacement for the Unix cat command that adds syntax highlighting, Git integration, and automatic paging to file viewing in the terminal. Written in Rust and using the same syntax highlighting engine as Sublime Text, bat supports over 170 programming and markup languages out of the box. It solves the problem of reading code files in the terminal being a poor experience compared to viewing them in an editor, bringing rich visual formatting to command-line file inspection.

Bat automatically detects the file type and applies appropriate syntax highlighting with customizable color themes, displays line numbers by default, shows Git modifications in the left margin, and pipes output to a pager like less when the content exceeds the terminal height. It also supports displaying non-printable characters, can concatenate multiple files, and integrates with other command-line tools as a drop-in replacement for cat. Bat's themes are compatible with Sublime Text and TextMate theme formats, offering extensive visual customization.

Bat is essential for developers who spend significant time reading code and configuration files in the terminal. It pairs exceptionally well with other modern CLI tools like ripgrep, fzf, and fd, and can be aliased to replace cat for everyday use. Available on macOS, Linux, and Windows, bat has become a standard part of the modern terminal toolkit, frequently recommended alongside other Rust-based CLI utilities for upgrading the default Unix command-line experience.

Pricing & Platform Specs

Pricing Summary

Free and 100% open source under dual Apache-2.0 and MIT licenses. bat has $0 software licensing fees, no subscription tiers, and runs locally across macOS, Linux, and Windows with syntax highlighting and Git integration.

full pricing breakdown →

Supported Platforms

macOS, Linux, Windows

Explore categories, tags & use cases

Alternatives

All bat alternatives →

Modern replacement for ls

Modern replacement for the Unix ls command written in Rust with color-coded output, Git integration showing file status, tree view, icon support, extended attributes display, and hyperlink support for terminals. Faster than ls with features like recursive directory listing, grid/long/tree layouts, and filtering by file type. Maintained fork of the discontinued exa project. Part of the modern CLI toolkit alongside bat, fd, ripgrep, and zoxide. 14K+ GitHub stars.

Open Source

Blazingly fast recursive search

Ultra-fast recursive text search tool written in Rust that respects .gitignore rules automatically. Searches directories significantly faster than grep with smart defaults like line numbers, syntax highlighting, and compressed file support. The de facto replacement for grep among developers, combining the speed of Rust with sensible defaults that eliminate the need for complex command-line flags.

Open Source

Community experience

Sources & verification

Sources checked
Content verified

Verification dates are editorial checks. Routine CMS saves and automatic updatedAt timestamps do not advance them.

FAQ

What is bat?

Modern replacement for the Unix cat command with syntax highlighting for 200+ languages, automatic paging, line numbers, Git integration showing file modifications, and themes including integration with terminal color schemes. Supports plain text output mode for piping. Extremely fast with Rust-based implementation. Can be used as a drop-in cat replacement via aliasing. 51K+ GitHub stars. Part of the modern CLI toolkit alongside fd, ripgrep, and eza.

Is bat free?

Yes — bat is open source and free to use. Free and 100% open source under dual Apache-2.0 and MIT licenses. bat has $0 software licensing fees, no subscription tiers, and runs locally across macOS, Linux, and Windows with syntax highlighting and Git integration.

Is bat open source?

Yes — bat is open source.

Is bat still maintained?

Yes — bat is active. Its listing was last verified on September 6, 2026.

What are the best bat alternatives?

The first editor-selected bat alternatives are eza, ripgrep.