# mozilla-firefox/firefox SLOC report

> As of 2026-09-06 (commit 3bab33d99612), mozilla-firefox/firefox contains 34,669,084 total lines: 23,885,863 code, 7,234,384 comments, 3,548,837 blank, across 136,839 files in 90 languages (top: C++ 22.7%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

mozilla-firefox/firefox has 23,885,863 source lines of code out of 34,669,084 total lines across 136,839 files, counted from the 3bab33d9961254238aee629b6ff6efc08c6469be ref at commit 3bab33d99612 by the OctoCounts tokei engine on 2026-09-06. 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 mozilla-firefox/firefox to commit 3bab33d99612, 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 very large codebase by counted code lines. Code represents 68.9% of all lines, comments represent 20.9%, and the repository averages 175 code lines per file. C++ accounts for 22.7% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 12,940 | 7,112,785 | 5,417,384 | 782,296 | 913,105 |
| Rust | 12,223 | 4,720,315 | 4,158,444 | 198,146 | 363,725 |
| C Header | 19,294 | 4,905,276 | 3,072,466 | 1,190,467 | 642,343 |
| C | 3,690 | 3,849,874 | 2,847,367 | 629,028 | 373,479 |
| JavaScript | 5,957 | 2,595,173 | 1,953,109 | 415,715 | 226,349 |
| Python | 4,807 | 1,321,456 | 1,059,639 | 87,762 | 174,055 |
| JSON | 1,355 | 888,992 | 888,575 | 0 | 417 |
| INI | 26,476 | 1,234,855 | 850,033 | 192 | 384,630 |
| C++ Header | 1,368 | 724,255 | 580,390 | 54,306 | 89,559 |
| XML | 6,756 | 880,977 | 462,112 | 400,817 | 18,048 |
| Kotlin | 3,999 | 529,985 | 380,558 | 92,151 | 57,276 |
| HTML | 19,125 | 401,066 | 361,964 | 17,794 | 21,308 |

Top language (C++ 22.7%). Generated at 2026-09-06T03:05:34.351475828+00:00. Canonical report: https://octocounts.com/github/mozilla-firefox/firefox

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/mozilla-firefox/firefox/commit/3bab33d9961254238aee629b6ff6efc08c6469be?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 mozilla-firefox/firefox have?

mozilla-firefox/firefox has 34,669,084 total lines, including 23,885,863 code lines, 7,234,384 comment lines, and 3,548,837 blank lines.

### How was the mozilla-firefox/firefox line count measured?

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

### What commit was counted for mozilla-firefox/firefox?

This OctoCounts report was generated from 3bab33d9961254238aee629b6ff6efc08c6469be at commit 3bab33d99612 on 2026-09-06T03:05:34.351475828+00:00.

## Similar repository reports

- [oceanbase/oceanbase](https://octocounts.com/github/oceanbase/oceanbase) — C++, 8,265,001 code lines
- [llvm/llvm-project](https://octocounts.com/github/llvm/llvm-project) — C++, 8,218,225 code lines
- [LibreOffice/core](https://octocounts.com/github/LibreOffice/core) — C++, 6,334,759 code lines
- [mongodb/mongo](https://octocounts.com/github/mongodb/mongo) — C++, 5,888,453 code lines
- [tensorflow/tensorflow](https://octocounts.com/github/tensorflow/tensorflow) — C++, 5,095,080 code lines
- [facebook/hhvm](https://octocounts.com/github/facebook/hhvm) — C++, 4,641,684 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)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Electron vs Tauri](https://octocounts.com/compare/electron-vs-tauri)
- [Godot vs Bevy](https://octocounts.com/compare/godot-vs-bevy)
- [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)
