# curl/curl SLOC report

> As of 2026-09-19 (commit a40991b97c0c), curl/curl contains 248,549 total lines: 181,213 code, 41,914 comments, 25,422 blank, across 627 files in 19 languages (top: C 76.0%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

curl/curl has 181,213 source lines of code out of 248,549 total lines across 627 files, counted from the a40991b97c0ce721e85acbe16e16fe79b7b68c51 ref at commit a40991b97c0c by the OctoCounts tokei engine on 2026-09-19. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving curl/curl to commit a40991b97c0c, downloading the repository source archive, and counting every source file with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options, so counting the same revision again reproduces exactly these numbers.

## Repository size insights

This is a large codebase by counted code lines. Code represents 72.9% of all lines, comments represent 16.9%, and the repository averages 289 code lines per file. C accounts for 76.0% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 245 | 180,238 | 137,688 | 23,847 | 18,703 |
| C Header | 250 | 30,170 | 15,274 | 11,303 | 3,593 |
| M4 | 21 | 11,460 | 7,979 | 2,437 | 1,044 |
| CMake | 34 | 7,408 | 5,402 | 1,408 | 598 |
| Visual Studio Project | 2 | 4,371 | 4,371 | 0 | 0 |
| Autoconf | 5 | 4,607 | 4,021 | 304 | 282 |
| Perl | 11 | 3,631 | 2,798 | 510 | 323 |
| Shell | 24 | 2,733 | 1,357 | 942 | 434 |
| Visual Studio Solution | 3 | 569 | 569 | 0 | 0 |
| Automake | 8 | 904 | 550 | 227 | 127 |
| Bitbake | 2 | 608 | 528 | 56 | 24 |
| Batch | 2 | 391 | 343 | 0 | 48 |

Top language (C 76.0%). Generated at 2026-09-19T22:02:01.710597166+00:00. Canonical report: https://octocounts.com/github/curl/curl

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/curl/curl/commit/a40991b97c0ce721e85acbe16e16fe79b7b68c51?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does curl/curl have?

curl/curl has 248,549 total lines, including 181,213 code lines, 41,914 comment lines, and 25,422 blank lines.

### How was the curl/curl line count measured?

OctoCounts resolved the public GitHub repository to commit a40991b97c0c, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for curl/curl?

This OctoCounts report was generated from a40991b97c0ce721e85acbe16e16fe79b7b68c51 at commit a40991b97c0c on 2026-09-19T22:02:01.710597166+00:00.

## Similar repository reports

- [unicorn-engine/unicorn](https://octocounts.com/github/unicorn-engine/unicorn) — C, 177,560 code lines
- [milescoviello/OS-DEV](https://octocounts.com/github/milescoviello/OS-DEV) — C, 168,629 code lines
- [mackron/miniaudio](https://octocounts.com/github/mackron/miniaudio) — C, 167,086 code lines
- [kingToolbox/WindTerm](https://octocounts.com/github/kingToolbox/WindTerm) — C, 165,596 code lines
- [openssh/openssh-portable](https://octocounts.com/github/openssh/openssh-portable) — C, 165,012 code lines
- [sunblaze-ucb/exploitgym](https://octocounts.com/github/sunblaze-ucb/exploitgym) — C, 197,903 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [Neovim vs VS Code](https://octocounts.com/compare/neovim-vs-vscode)
- [MongoDB vs PostgreSQL](https://octocounts.com/compare/mongodb-vs-postgres)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
