Developer Tools

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.

Things to watch:

23,676 GitHub stars · 2.7M downloads · 124 contributors · OpenSSF Scorecard 4/10.

Download cloc

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

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).