cloc

A command-line tool that counts blank, comment and code lines across many programming languages.

These buttons open the developer's own site, repository or store listing in a new tab. wares.gg does not host downloads.

2 more ways to get cloc

Package managers

About cloc

cloc counts blank lines, comment lines and physical lines of source code in a wide range of programming languages. Point it at a directory, archive or set of files and it reports totals broken down by language.

It is useful for sizing up an unfamiliar codebase, tracking how a project grows, or comparing two versions of the same code. The project is actively maintained on GitHub.

Strengths

  • Supports many programming languages
  • Separates code, comment and blank lines
  • Actively maintained

Limitations

  • Line counts say little about code quality or complexity
  • Command-line output only

Details

Pricing
FreeFree and open source.
License
GPL-2.0
Developer
Al Danial
Platforms
Windows, macOS, Linux, Command line
How it runs
Downloadable app
Account
Not required
Works offline
Yes
Best suited for
Developers measuring the size and language mix of a codebase
Last verified
Added
Provenance
Facts checked against the developer's own pages and store listings, 1 sources on file.

Alternatives to cloc

Compare all

Software that can replace cloc for an important use case, and what changes if you switch.

  • scc

    Count source lines and estimate code complexity across projects.

    scc also counts source lines across languages under the MIT license, and adds complexity and effort estimates from the same repository scan.

Similar software

Related functionality, not necessarily a direct replacement.

Report a wrong fact or a dead link on this listing