cloc counts blank lines, comment lines, and physical lines of source code in many programming languages. Given two versions of a code base, cloc can compute differences in blank, comment, and source lines.
It is written entirely in Perl with no dependencies outside the standard distribution of Perl v5.6 and higher (code from some external modules is embedded within cloc) and so is quite portable.
Publisher’s description
What is cloc?
cloc is an open-source program for Windows from Al Danial. It is written in Perl.
Installation and requirements
Official installers exist for 64-bit as Portable. It runs without installation (portable).
Updates and version history
The current version is 2.10, released on July 4, 2026. 7 versions are listed since August 19, 2023, each with links to its own installer files. That is about 2.4 releases a year.
Popularity and file types
The Chocolatey package has been downloaded 115,063 times. The source code on GitHub (AlDanial/cloc) has 23,613 stars.
Project description on GitHub: “cloc counts blank lines, comment lines, and physical lines of source code in many programming languages.”
Pros / Cons
Pros
- Open source: the code can be inspected and built by anyone
- Portable: runs without installation
- Large user base
Cons
- No native ARM64 build
In short: cloc is an open-source Windows tool for 64-bit PCs.
Is cloc safe to download?
- The file is served by github.com, the publisher’s own domain
- The download link uses HTTPS
- A SHA256 hash is published, so you can verify the file:
97786C4B5BB71D2BE67E42061A2F5D03DB73BBF88228F8710001D770E867BBEF· Open the VirusTotal report for this hash - The link has not been checked yet
- The source code is public
- ExeAtlas does not host, wrap or modify installers
Related guide: How to check a file’s SHA256 hash on Windows
Security practices (OpenSSF Scorecard)
Automated checks of the AlDanial/cloc repository on GitHub by the Open Source Security Foundation, last run on August 15, 2022.
- Actively maintained10
- No known vulnerabilities10
- No dangerous workflows10
- Licence declared10
- No binaries in the repository9
- Pinned dependencies7
- Code review1
- OpenSSF Best Practices badge0
- Signed releases0
- Branch protection0
- Restricted token permissions0
- Dependency update tool0
- Fuzzing0
- Security policy0
The score rates how the project is developed and released, not whether the program is safe to install. scorecard.dev
Recent versions
All 7 versions ›7 versions over 3 years · about 2.4 a year
| Version | Date | Size | Files |
|---|---|---|---|
| 2.10Latest | July 4, 2026 | — | 64-bit Portable |
| 2.08 | January 25, 2026 | — | 64-bit Portable |
| 2.06 | June 25, 2025 | — | 64-bit Portable |
| 2.04 | January 31, 2025 | — | Any CPU Portable |
| 2.02 | August 25, 2024 | — | 64-bit Portable |
| 2.00 | February 17, 2024 | — | 64-bit Portable |
| 1.98 | August 19, 2023 | — | 64-bit Portable |
Install from the command line
Silent install ›winget install --id AlDanial.Cloc -echoco install CLOC -yscoop install main/clocProgram files (.exe): cloc.exe
Related guide: How to use winget: install and update apps
Also for other systems
brew install clocInformation
- Publisher
- Al Danial
- Licence
- GPL-2.0
- Price
- Free
- Source code
- github.com/AlDanial/cloc
- Written in
- Perl
- Requires
- Windows 11 / 10
- Architecture
- 64-bit
- Installer
- Portable
- Version
- 2.10
- Released
- July 4, 2026
- Added to the catalogue
- January 30, 2024
- Versions listed
- 7
- Updates / year
- 2.4
- Chocolatey downloads
- 115,063
- GitHub stars
- 23,613
- GitHub forks
- 1,126
- Website
- github.com
- winget ID
- AlDanial.Cloc
- Chocolatey package
- CLOC
- Scoop package
- main/cloc
Ratings and reviews
No reviews yet. Be the first to rate it.
Frequently asked questions
Is cloc free?
Yes. cloc is open-source software under the GPL-2.0 licence.
Is cloc safe to download?
The download comes from github.com, which belongs to the publisher; ExeAtlas does not host or change the file. Compare its SHA256 hash with the one shown here, or open the VirusTotal report for that hash.
How do I install cloc with winget?
Open PowerShell or Windows Terminal and run the winget command shown on this page. winget downloads the official installer and checks its SHA256 hash before running it.
Does cloc run on ARM (Windows on Arm)?
There is no ARM64 build; Windows 11 on Arm can run the 64-bit version through emulation.
Where can I download an older version of cloc?
The versions page lists all 7 versions with links to their official installer files, back to August 19, 2023.
Can I use cloc without administrator rights?
Yes, it is portable: unpack and run it.