# mozilla-firefox/firefox SLOC report

> As of 2026-11-21 (commit a3178f3cbfac), mozilla-firefox/firefox contains 35,807,437 total lines: 25,027,062 code, 7,076,550 comments, 3,703,825 blank, across 141,604 files in 92 languages (top language: C++ 23.2%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

mozilla-firefox/firefox has 25,027,062 source lines of code out of 35,807,437 total lines across 141,604 files, counted with tokei from the main ref at commit a3178f3cbfac on November 21, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving mozilla-firefox/firefox to commit a3178f3cbfac, downloading the repository source archive, and counting files selected by the effective rules 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; an exact reproduction needs the same commit, engine version, and effective counting rules.

## Counting rules and retention

mozilla-firefox/firefox: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

## Repository size insights

This is a very large codebase by counted code lines. Code represents 69.9% of all lines, comments represent 19.8%, and the repository averages 177 code lines per file. C++ accounts for 23.2% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 13,393 | 7,604,781 | 5,803,718 | 839,106 | 961,957 |
| Rust | 12,831 | 4,978,747 | 4,378,479 | 211,532 | 388,736 |
| C Header | 19,796 | 5,105,230 | 3,194,099 | 1,242,351 | 668,780 |
| C | 3,670 | 3,803,469 | 2,808,474 | 623,333 | 371,662 |
| JavaScript | 6,301 | 2,716,141 | 2,026,103 | 454,013 | 236,025 |
| Python | 4,949 | 1,385,229 | 1,114,858 | 90,988 | 179,383 |
| JSON | 1,442 | 1,094,465 | 1,093,999 | 0 | 466 |
| INI | 27,624 | 1,255,375 | 858,782 | 262 | 396,331 |
| C++ Header | 1,426 | 765,496 | 611,716 | 59,571 | 94,209 |
| Kotlin | 4,392 | 642,267 | 464,162 | 103,245 | 74,860 |
| XML | 6,802 | 867,581 | 455,373 | 395,859 | 16,349 |
| HTML | 19,255 | 398,506 | 359,381 | 18,032 | 21,093 |

Top language: C++ 23.2%. Generated on November 21, 2026. 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/a3178f3cbfac6e25d5bc7b6365c4ff520a42205e?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&reportId=3b63a54fffa52d14f25ac05890b37d65a15ad4cbd66722900ebad5a5554acd02).

## Report FAQ

### How many lines of code does mozilla-firefox/firefox have?

mozilla-firefox/firefox has 25,027,062 lines of code, plus 7,076,550 comment lines and 3,703,825 blank lines, for 35,807,437 total lines at commit a3178f3cbfac on November 21, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

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

OctoCounts resolved the public GitHub repository to commit a3178f3cbfac, 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 main at commit a3178f3cbfac on November 21, 2026.

## Similar repository reports

- [ravynsoft/ravynos](https://octocounts.com/github/ravynsoft/ravynos) — C++, 12,835,604 code lines
- [llvm/llvm-project](https://octocounts.com/github/llvm/llvm-project) — C++, 8,458,265 code lines
- [komimoe/Arkari](https://octocounts.com/github/komimoe/Arkari) — C++, 8,064,811 code lines
- [mongodb/mongo](https://octocounts.com/github/mongodb/mongo) — C++, 7,683,981 code lines
- [luobochuanqi/llvm-project](https://octocounts.com/github/luobochuanqi/llvm-project) — C++, 7,466,206 code lines
- [google/filament](https://octocounts.com/github/google/filament) — C++, 7,446,415 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)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [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)
- [All OctoCounts guides](https://octocounts.com/docs)
