sharkdp

batv0.26.1

A cat clone for viewing files in the terminal, with syntax highlighting built in.

sharkdp/batDeveloper ToolsLinuxmacOSWindowsclicommand-linegithacktoberfestrust

61.4k

Stars

3587.7k

Total downloads

10

Versions

6h ago

Page synced

Download

v0.26.12025-12-02 · 11mo ago

Recommended for most users

bat-v0.26.1-x86_64-pc-windows-msvc.zip

3.4 MBx64149.7k downloadsSHA256 0f729b4b6f…
Download

This is the right pick for most people, including when you are unsure about x64 vs arm64.

Windows — all files

bat-v0.26.1-aarch64-pc-windows-msvc.zip

3.3 MBarm646.3k downloadsSHA256 af07dd1939…
Download

bat-v0.26.1-i686-pc-windows-msvc.zip

3.2 MBx864.1k downloadsSHA256 07fcab3b17…
Download

About this project

bat is an enhanced replacement for the classic cat command, used to view text and code files right in your terminal. It adds syntax highlighting and line numbers to the output, and pages through long files automatically, which makes reading code and logs much easier on the eyes.

It is made for developers and system administrators who spend a lot of time in the terminal. After downloading the build for your system and unpacking it, you can use bat almost exactly like cat, so there is virtually no learning curve.

Key features

  • Syntax highlighting for code files
  • Line numbers for easy reference
  • Automatic paging for long files
  • Works almost exactly like cat
  • Single binary, ready to use

Use cases & who it's for

  • Reading code in the terminal and wanting clear, highlighted output
  • Scanning long log files and jumping to specific lines while troubleshooting
  • Replacing plain cat with a more readable everyday file viewer

Maintenance

Slowing down

Last release 11mo ago

License

Apache-2.0

Permissive license

Allows:Commercial use、Modification、Distribution、Patent grant
Requires:Keep the copyright notice、State changes made

Facts

Language
Rust
Forks
2.3k
Latest release
2025-12-02
Created
2018-04-21

System requirements & installation

Supported systems
Windows, macOS, Linux (based on the files the latest release actually ships)
How to install

Windows: Download the .exe or .msi installer, run it and follow the setup wizard.

macOS: Open the .dmg and drag the app into Applications; if macOS blocks the first launch, allow it under System Settings → Privacy & Security.

Linux: Match your distro: .deb for Debian / Ubuntu, .rpm for Fedora / RHEL, or the portable .AppImage (make it executable and run it).

Which file to pick

Pick x64 for regular Intel / AMD machines and arm64 for ARM devices — the wrong one will not install.

FAQ

Is bat free?

Yes. bat is free and open source under the Apache-2.0 license, and you can download and use it for free.

Which platforms does bat support?

This site provides builds for Windows, macOS and Linux. Pick the file that matches your system from the version list.

How do I download and install bat from this site?

Download the archive for your system from the version list on this page, unpack it, place the bat binary in a folder on your system path, then run bat followed by a file name in your terminal.

How is bat different from cat?

bat keeps the familiar cat workflow but adds syntax highlighting, line numbers and paging, so code and long files are easier to read.

Older versions 9 versions

v0.26.02025-10-19 · 21 filesGitHub release page
v0.25.02025-01-07 · 21 filesGitHub release page
v0.24.02023-10-11 · 17 filesGitHub release page
v0.23.02023-03-25 · 17 filesGitHub release page
v0.22.12022-09-10 · 17 filesGitHub release page
v0.22.02022-09-06 · 17 filesGitHub release page
v0.21.02022-05-12 · 17 filesGitHub release page
v0.20.02022-02-27 · 17 filesGitHub release page
v0.19.02022-01-08 · 17 filesGitHub release page

Related software