# mozilla-firefox/firefox SLOC report

> mozilla-firefox/firefox: 24,839,434 code lines at commit d7161e35da77, counted with tokei-15.0.0 on 2026-11-16. Saved result 1a45f7844a8e8978b4f21ff8d984679bdd0d5433942759ad3a932fd907d8b9c7.

mozilla-firefox/firefox has 24,839,434 source lines of code out of 35,575,828 total lines across 141,010 files, counted with tokei from the main ref at commit d7161e35da77 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving mozilla-firefox/firefox to commit d7161e35da77, 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.8% of all lines, comments represent 19.8%, and the repository averages 176 code lines per file. C++ accounts for 22.8% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 13,233 | 7,434,870 | 5,668,132 | 823,416 | 943,322 |
| Rust | 12,788 | 4,941,365 | 4,345,587 | 209,580 | 386,198 |
| C Header | 19,689 | 5,041,681 | 3,143,429 | 1,235,230 | 663,022 |
| C | 3,690 | 3,876,693 | 2,867,712 | 633,685 | 375,296 |
| JavaScript | 6,279 | 2,706,302 | 2,019,360 | 451,387 | 235,555 |
| Python | 4,911 | 1,378,258 | 1,109,119 | 90,576 | 178,563 |
| JSON | 1,426 | 1,084,652 | 1,084,200 | 0 | 452 |
| INI | 27,280 | 1,251,646 | 855,923 | 262 | 395,461 |
| C++ Header | 1,421 | 757,077 | 604,712 | 58,546 | 93,819 |
| Kotlin | 4,419 | 648,691 | 469,735 | 103,475 | 75,481 |
| XML | 6,971 | 871,969 | 458,079 | 397,341 | 16,549 |
| HTML | 19,253 | 398,469 | 359,345 | 18,031 | 21,093 |
| YAML | 2,080 | 356,952 | 326,458 | 15,862 | 14,632 |
| Assembly | 313 | 300,200 | 263,924 | 17,335 | 18,941 |
| Bitbake | 134 | 210,880 | 207,453 | 1,078 | 2,349 |
| GNU Style Assembly | 271 | 238,051 | 197,195 | 16,889 | 23,967 |
| CSS | 953 | 159,583 | 125,440 | 12,014 | 22,129 |
| Objective-C++ | 375 | 135,155 | 102,051 | 13,437 | 19,667 |
| Java | 409 | 136,310 | 91,323 | 29,923 | 15,064 |
| TOML | 1,210 | 98,649 | 77,746 | 8,502 | 12,401 |
| SVG | 3,679 | 77,949 | 61,962 | 11,346 | 4,641 |
| Module-Definition | 54 | 55,117 | 53,123 | 1,635 | 359 |
| TypeScript | 519 | 78,364 | 50,891 | 18,682 | 8,791 |
| JSX | 254 | 47,857 | 39,325 | 4,849 | 3,683 |
| Autoconf | 272 | 39,698 | 30,232 | 4,936 | 4,530 |
| FreeMarker | 260 | 35,306 | 28,807 | 0 | 6,499 |
| CMake | 129 | 30,351 | 23,544 | 3,747 | 3,060 |
| Shell | 495 | 34,229 | 22,879 | 6,362 | 4,988 |
| Sass | 94 | 28,781 | 22,130 | 2,098 | 4,553 |
| Makefile | 365 | 27,233 | 13,605 | 8,122 | 5,506 |
| Bazel | 47 | 14,449 | 12,744 | 783 | 922 |
| Objective-C | 67 | 14,989 | 11,177 | 1,301 | 2,511 |
| Perl | 43 | 13,076 | 9,418 | 1,656 | 2,002 |
| Metal Shading Language | 4 | 10,960 | 8,311 | 421 | 2,228 |
| Visual Studio Project | 46 | 8,189 | 8,004 | 185 | 0 |
| C++ Module | 2 | 11,171 | 7,951 | 1,624 | 1,596 |
| GLSL | 52 | 10,708 | 7,159 | 2,074 | 1,475 |
| ReStructuredText | 20 | 10,752 | 6,291 | 0 | 4,461 |
| C# | 20 | 4,545 | 3,844 | 231 | 470 |
| Swift | 69 | 4,469 | 3,273 | 581 | 615 |
| Protocol Buffers | 37 | 8,316 | 3,211 | 3,854 | 1,251 |
| Cython | 14 | 3,743 | 3,127 | 199 | 417 |
| Prolog | 162 | 3,362 | 2,870 | 0 | 492 |
| Forge Config | 51 | 6,700 | 2,371 | 3,586 | 743 |
| Meson | 9 | 2,892 | 2,335 | 242 | 315 |
| M4 | 13 | 3,443 | 2,197 | 957 | 289 |
| Happy | 1 | 2,546 | 2,178 | 0 | 368 |
| ReScript | 12 | 1,938 | 1,938 | 0 | 0 |
| Ruby | 23 | 2,550 | 1,910 | 244 | 396 |
| Dockerfile | 76 | 2,558 | 1,839 | 314 | 405 |
| Automake | 7 | 2,133 | 1,792 | 179 | 162 |
| SQL | 17 | 2,062 | 1,425 | 395 | 242 |
| SWIG | 3 | 1,720 | 1,362 | 77 | 281 |
| WebGPU Shader Language | 15 | 1,338 | 1,089 | 75 | 174 |
| Visual Studio Solution | 13 | 1,020 | 1,008 | 0 | 12 |
| LLVM | 1 | 793 | 772 | 0 | 21 |
| Batch | 21 | 1,164 | 712 | 260 | 192 |
| HLSL | 5 | 1,022 | 669 | 202 | 151 |
| Lex | 3 | 905 | 593 | 191 | 121 |
| MSBuild | 8 | 504 | 407 | 94 | 3 |
| PowerShell | 3 | 524 | 403 | 70 | 51 |
| Elm | 2 | 542 | 399 | 32 | 111 |
| Korn shell | 4 | 537 | 366 | 115 | 56 |
| Go | 2 | 501 | 326 | 112 | 63 |
| Jinja2 | 9 | 341 | 298 | 4 | 39 |
| Emacs Lisp | 2 | 338 | 258 | 38 | 42 |
| XSL | 13 | 304 | 255 | 10 | 39 |
| BASH | 10 | 390 | 229 | 97 | 64 |
| Templ | 9 | 320 | 224 | 70 | 26 |
| Vue | 43 | 197 | 160 | 0 | 37 |
| VB6/VBA | 13 | 151 | 150 | 0 | 1 |
| LALRPOP | 1 | 210 | 143 | 33 | 34 |
| WebAssembly | 25 | 193 | 118 | 75 | 0 |
| AWK | 2 | 126 | 105 | 5 | 16 |
| Handlebars | 12 | 100 | 100 | 0 | 0 |
| Pascal | 1 | 126 | 98 | 13 | 15 |
| RPM Specfile | 2 | 101 | 79 | 0 | 22 |
| Jupyter Notebooks | 1 | 82 | 73 | 7 | 2 |
| Svelte | 4 | 65 | 54 | 2 | 9 |
| FlatBuffers Schema | 1 | 119 | 45 | 51 | 23 |
| Nix | 1 | 28 | 25 | 1 | 2 |
| Rusty Object Notation | 1 | 22 | 22 | 0 | 0 |
| Xcode Config | 3 | 118 | 21 | 88 | 9 |
| Scons | 1 | 25 | 18 | 1 | 6 |
| Just | 1 | 18 | 17 | 0 | 1 |
| Pan | 3 | 29 | 17 | 3 | 9 |
| R | 1 | 38 | 12 | 18 | 8 |
| D | 1 | 33 | 8 | 21 | 4 |
| LD Script | 1 | 13 | 7 | 5 | 1 |
| Elixir | 1 | 43 | 6 | 37 | 0 |
| Markdown | 1,583 | 163,118 | 0 | 117,581 | 45,537 |
| Plain Text | 5,167 | 2,770,721 | 0 | 2,721,389 | 49,332 |

Top language: C++ 22.8%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/mozilla-firefox/firefox/commit/d7161e35da7704cff60e48ee86fb7747ffcc93c7?reportId=1a45f7844a8e8978b4f21ff8d984679bdd0d5433942759ad3a932fd907d8b9c7&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/mozilla-firefox/firefox/commit/d7161e35da7704cff60e48ee86fb7747ffcc93c7?reportId=1a45f7844a8e8978b4f21ff8d984679bdd0d5433942759ad3a932fd907d8b9c7&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

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

mozilla-firefox/firefox has 24,839,434 lines of code, plus 7,057,949 comment lines and 3,678,445 blank lines, for 35,575,828 total lines at commit d7161e35da77 on November 16, 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 d7161e35da77, 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 d7161e35da77 on November 16, 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,434,145 code lines
- [mongodb/mongo](https://octocounts.com/github/mongodb/mongo) — C++, 7,655,692 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,430,089 code lines
- [GaijinEntertainment/DagorEngine](https://octocounts.com/github/GaijinEntertainment/DagorEngine) — C++, 6,701,537 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)
