Tokei
Count your code, quickly.
By XAMPPRocky. Free and open source for Windows, macOS, Linux. Latest version v13.0.0-alpha.0, released 2023-03-27.
Is Tokei safe?
Trust score 56/100: Use caution. Some warning signs. Read the notes, check the reviews, and verify the file before you run it.
- Very widely used: 15,084 GitHub stars
- 270 people have contributed code
- Code changes are reviewed before merging
- Downloads come straight from the project's own GitHub releases
- Around since 2015
Things to watch:
- The latest release is more than 18 months old
- No checksums or signatures published: you can't verify the download
- Custom or unusual license: read it before relying on the app
15,084 GitHub stars · 929k downloads · 270 contributors · OpenSSF Scorecard 4.6/10.
Download Tokei
- tokei-aarch64-unknown-linux-gnu.tar.gz (Linux, 2.2 MB)
- tokei-arm-unknown-linux-gnueabi.tar.gz (Linux, 2.2 MB)
- tokei-armv7-unknown-linux-gnueabihf.tar.gz (Linux, 2.2 MB)
- tokei-i686-pc-windows-msvc.exe (Windows, 2.9 MB)
- tokei-i686-unknown-linux-gnu.tar.gz (Linux, 2.3 MB)
- tokei-i686-unknown-linux-musl.tar.gz (Linux, 2.4 MB)
- tokei-mips-unknown-linux-gnu.tar.gz (Linux, 2.5 MB)
- tokei-mips64-unknown-linux-gnuabi64.tar.gz (Linux, 2.4 MB)
- tokei-mips64el-unknown-linux-gnuabi64.tar.gz (Linux, 2.3 MB)
- tokei-mipsel-unknown-linux-gnu.tar.gz (Linux, 2.4 MB)
Downloads come straight from github.com/XAMPPRocky/tokei.
About Tokei
Tokei is a program that displays statistics about your code. Tokei will show the number of files, total lines within those files and code, comments, and blanks grouped by language.
• Features • Installation • Package Managers • Manual • Configuration • How to use Tokei • Options • Supported Languages • Changelog • Common Issues • Canonical Source • Copyright and License
• Tokei is very fast, and is able to count millions of lines of code in seconds. Check out the 11.0.0 release to see how Tokei's speed compares to others. • Tokei is accurate, Tokei correctly handles multi line comments, nested comments, and not counting comments that are in strings. Providing an accurate code statistics. • Tokei has huge range of languages, supporting over 150 languages, and their various extensions. • Tokei can output in multiple formats (CBOR, JSON, YAML) allowing Tokei's output to be easily stored, and reused. These can also be reused in tokei combining a previous run's st
You can also build and install from source (requires the latest stable [Rust] compiler.)
Similar apps
- Scc: Sloc, Cloc and Code: scc is a very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go (High trust, 75/100)
- Cs: codespelunker - CLI code search tool that understands code structure and ranks results by relevance. No indexing required with CLI, TUI, MCP (Good, 61/100)
- zoxide: A smarter cd command. Supports all major shells. (Good, 70/100)
- Trippy: A network diagnostic tool (Use caution, 57/100)
- Miniserve: 🌟 For when you really just want to serve some files over HTTP right now! (Use caution, 58/100)
- Television (tv): A very fast, portable and hackable fuzzy finder. (Good, 69/100)
Compare: Tokei vs Scc · Tokei vs Cs
Questions
Is Tokei safe to download?
Tokei has an OpenShelf trust score of 56/100 (Use caution). Some warning signs. Read the notes, check the reviews, and verify the file before you run it. Main thing to watch: The latest release is more than 18 months old.
Is Tokei free?
Yes. Tokei is free and open source under a custom open-source license. The source code is public at github.com/XAMPPRocky/tokei.
Does Tokei work on Windows, macOS and Linux?
Tokei is available for Windows, macOS, Linux. Ready-made downloads exist for Windows, macOS, Linux.
How do I install Tokei?
Download the official file from the project's GitHub releases (for example tokei-i686-pc-windows-msvc.exe) and run it.
What are alternatives to Tokei?
Similar open-source apps: Scc (trust 75/100), Cs (trust 61/100), zoxide (trust 70/100), Trippy (trust 57/100).