Tokei
lastmod 2026-11-10created 2021-01-284 edits
Tokei is a command-line tool that quickly counts lines of source code. It recursively scans directories and shows, per language, the number of files, code lines, comment lines, and blank lines in a table; it recognizes hundreds of languages and respects .gitignore. Written in Rust, it is much faster than cloc, a Perl script, and can output to formats such as JSON to pass to other tools. It is used to gauge project size or to generate statistics badges for READMEs.
Count your code, quickly.