cloc
cloc counts blank lines, comment lines, and physical lines of source code in many programming languages.
By AlDanial. Free and open source for Windows. Latest version v2.12, released 2026-11-13.
Is cloc safe?
Trust score 72/100: Good. A solid project with a few gaps. Download from the official release and keep it updated.
- Very widely used: 23,676 GitHub stars
- 124 people have contributed code
- Actively developed: code changed in the last 30 days
- Downloads come straight from the project's own GitHub releases
- Around since 2015
Things to watch:
- No checksums or signatures published: you can't verify the download
23,676 GitHub stars · 2.7M downloads · 124 contributors · OpenSSF Scorecard 4/10.
Download cloc
- cloc-2.12.exe (Windows, 9.5 MB)
Downloads come straight from github.com/AlDanial/cloc.
About cloc
cloc counts blank lines, comment lines, and physical lines of source code in many programming languages.
cloc moved to GitHub in September 2015 after being hosted at http://cloc.sourceforge.net/ since August 2006.
Step 1: Install cloc (see Install from Github Releases and Install via package manager) or run cloc's docker image. The Windows executable has no requirements. The source version of cloc requires a Perl interpreter, and the Docker version of cloc requires a Docker installation.
Step 3: Invoke cloc to count your source files, directories, archives, or git commits. The executable name differs depending on whether you use the development source version (cloc), source for a released version (cloc-2.12.pl) or a Windows executable (cloc-2.12.exe).
Similar apps
- Haxe: Haxe - The Cross-Platform Toolkit (Use caution, 57/100)
- Inform: The core software distribution for the Inform 7 programming language. (Use caution, 52/100)
- Z-Sharp: Custom programming interpreter for ZSharp (Z#), a custom game programming language I made (Use caution, 43/100)
- Codex: Lightweight coding agent that runs in your terminal (High trust, 83/100)
- Terminal: The new Windows Terminal and the original Windows console host, all in the same place! (High trust, 81/100)
- Lazygit: simple terminal UI for git commands (High trust, 81/100)
Compare: cloc vs Haxe · cloc vs Inform
Questions
Is cloc safe to download?
cloc has an OpenShelf trust score of 72/100 (Good). A solid project with a few gaps. Download from the official release and keep it updated. Main thing to watch: No checksums or signatures published: you can't verify the download.
Is cloc free?
Yes. cloc is free and open source under the GPL-2.0 license. The source code is public at github.com/AlDanial/cloc.
Does cloc work on Windows?
cloc is available for Windows. Ready-made downloads exist for Windows.
How do I install cloc?
Download the official file from the project's GitHub releases (for example cloc-2.12.exe) and run it.
What are alternatives to cloc?
Similar open-source apps: Haxe (trust 57/100), Inform (trust 52/100), Z-Sharp (trust 43/100), Codex (trust 83/100).