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.
This is free and open source software.
Key Features
- Very fast, and is able to count millions of lines of code in seconds.
- Accurate, Tokei correctly handles multi line comments, nested comments, and not counting comments that are in strings. Providing an accurate code statistics.
- Huge range of languages, supporting over 150 languages, and their various extensions.
- 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 statistics with another set.
- Cross-platform support – runs under Linux, macOS, and Windows.
- Also a library allowing you to easily integrate it with other projects.
- Comes with and without color.
Website: github.com/XAMPPRocky/tokei
Support:
Developer: Erin Power
License: MIT License

Tokei is written in Rust. Learn Rust with our recommended free books and free tutorials.
Related Software
| Alternatives to cloc | |
|---|---|
| Tokei | Displays statistics about your code |
| scc | Fast accurate code counter with complexity calculations and COCOMO estimates |
| SLOCCount | Set of tools for counting physical Source Lines of Code |
| gocloc | A compact fast cloc tool seeking inspiration from Tokei |
| loccount | Re-implementation of David A. Wheeler’s sloccount tool in Go |
| loc | Rust implementation of cloc, but it’s more than 100x faster |
| tcount | Count your code by tokens and patterns in the syntax tree |
| sloc | Simple tool to count source lines of code written in CoffeeScript |
| polyglot | Command-line tool that determines project contents |
| enry | Programming language detector based on go-enry |
| Linguist | Assess a repository’s languages stats with github-linguist executable |
| CLOCTUI | TUI for CLOC |
| pygount | Count source lines of code |
| ocloc | Rust command-line utility that counts lines of code |
| Ohcount | Source code line counter and analysis library |
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.