Skip to content
Day 69: new resources are added every day. See what's new

What is Tokei?

Tokei is a program that shows statistics about your code: files, lines, code, comments and blanks, grouped by language. The README says it supports more than 150 languages, handles nested comments correctly, and can output JSON, YAML or CBOR. It is available on Mac, Linux and Windows.

Third-party open-source projects. We are not affiliated with their authors; repositories are provided as-is by their maintainers. Review each project's license, code and security before installing. See our Disclaimer.

Pros: what Tokei does well

  • Gives a quick size summary of any project
  • Understands over 150 languages
  • Exports results as JSON or YAML

Cons: where it falls short

  • Needs a terminal
  • Only useful for source code folders

Who Tokei is for

Anyone sizing up a codebase before joining or auditing it.

Who can skip it

People who do not work with code.

Tokei alternatives

Not sold on Tokei? These do a similar job, and each card says what it has in common.

yt-dlp

Focus: video downloader, audio and archive. Shares command line and open source with Tokei. Rated 4.8 (Tokei: 4.5).

OtherFreeWindows, macOS

GitHub CLI

Focus: pull requests, issues and terminal. Shares github and command line with Tokei. Rated 4.7 (Tokei: 4.5).

OtherFreeCross-Platform

csvkit

Focus: csv, data and spreadsheet. Shares command line and open source with Tokei. Rated 4.6 (Tokei: 4.5).

OtherFreeCross-Platform

difftastic

Focus: diff, code review and compare files. Shares command line and open source with Tokei. Same 4.5 rating.

OtherFreeCross-Platform

Git Extras

Focus: git, version control and changelog. Shares command line and open source with Tokei. Same 4.5 rating.

OtherFreeCross-Platform

lnav

Focus: log viewer, terminal and troubleshooting. Shares command line and open source with Tokei. Same 4.5 rating.

OtherFreeCross-Platform

Free alternatives to Tokei

Want to spend nothing? These free picks cover similar ground.

Tesseract

Focus: ocr, scanned documents and text recognition. Shares command line and open source with Tokei. Same 4.5 rating.

OtherFreeCross-Platform

Pandoc

Focus: document converter and markdown. Shares command line and open source with Tokei. Adds Offline. Rated 4.8 (Tokei: 4.5).

Desktop AppFreemacOS, Windows

ripgrep

Focus: search tool and developer tool. Shares command line and open source with Tokei. Adds Offline. Rated 4.8 (Tokei: 4.5).

Desktop AppFreemacOS, Windows

jq

Focus: json, data and filter. Shares command line and open source with Tokei. Rated 4.7 (Tokei: 4.5).

Desktop AppFreemacOS, Windows

Fabric

Focus: ai prompts and summaries. Shares command line and open source with Tokei. Rated 4.6 (Tokei: 4.5).

AI ToolFreemacOS, Windows

hyperfine

Focus: benchmark, speed test and performance. Shares command line and open source with Tokei. Rated 4.6 (Tokei: 4.5).

Desktop AppFreemacOS, Windows
Are you the maker of Tokei?Get a free Featured badge for your site, a share image and ready-to-paste posts. No sign-up.

Free Notion database

1,100+ ways people are making money online

Real online businesses, creators and projects, broken down by how they make money: apps, online stores, AI tools and more. Free on Gumroad.

Get the free database

Free Notion database

399+ ways to make money online

Hundreds of online income methods in one place, so you can compare options and pick one to try. Free on Gumroad.

Get the free list

For research and ideas only. Results vary and nothing here is a promise of income. See our Disclaimer.

Weekly newsletter

Everything new, every Monday.

One short email every Monday with everything shipped that week: new free tools and websites, new guides, new free browser tools and what's new in my free Gumroad libraries, plus how the site is growing. Free, and you can unsubscribe anytime.

Join the newsletter

You sign up on Gumroad, which stores your email to send the newsletter. See our Privacy Policy.

18 free downloads

Free databases, guides and hacks

Everything I've collected, free on Gumroad. Pay what you want, or nothing at all.

See all 18