# mozilla-firefox/firefox SLOC report

> mozilla-firefox/firefox: 25,027,062 code lines at commit a3178f3cbfac, counted with tokei-15.0.0 on 2026-11-21. Saved result 3b63a54fffa52d14f25ac05890b37d65a15ad4cbd66722900ebad5a5554acd02.

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 |
| YAML | 2,099 | 358,407 | 327,869 | 15,997 | 14,541 |
| Assembly | 313 | 300,200 | 263,924 | 17,335 | 18,941 |
| Bitbake | 134 | 209,985 | 206,556 | 1,078 | 2,351 |
| GNU Style Assembly | 271 | 238,248 | 197,364 | 16,895 | 23,989 |
| CSS | 957 | 160,412 | 126,109 | 12,066 | 22,237 |
| Objective-C++ | 375 | 135,337 | 102,195 | 13,454 | 19,688 |
| Java | 413 | 137,498 | 92,220 | 30,093 | 15,185 |
| TOML | 1,205 | 98,458 | 77,612 | 8,458 | 12,388 |
| SVG | 3,688 | 78,208 | 62,200 | 11,373 | 4,635 |
| Module-Definition | 54 | 55,117 | 53,123 | 1,635 | 359 |
| TypeScript | 519 | 78,671 | 51,171 | 18,698 | 8,802 |
| JSX | 255 | 48,051 | 39,455 | 4,902 | 3,694 |
| Autoconf | 272 | 39,823 | 30,357 | 4,936 | 4,530 |
| FreeMarker | 266 | 35,979 | 29,398 | 0 | 6,581 |
| CMake | 129 | 30,351 | 23,544 | 3,747 | 3,060 |
| Shell | 494 | 34,326 | 22,961 | 6,367 | 4,998 |
| Sass | 94 | 28,836 | 22,176 | 2,098 | 4,562 |
| Makefile | 365 | 27,154 | 13,558 | 8,100 | 5,496 |
| 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,800 | 7,218 | 2,094 | 1,488 |
| 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 | 163 | 3,379 | 2,884 | 0 | 495 |
| 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 | 78 | 2,624 | 1,879 | 326 | 419 |
| 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,612 | 164,475 | 0 | 118,901 | 45,574 |
| Plain Text | 5,171 | 2,770,788 | 0 | 2,721,460 | 49,328 |

Top language: C++ 23.2%. Generated on November 21, 2026. Canonical report: https://octocounts.com/github/mozilla-firefox/firefox/commit/a3178f3cbfac6e25d5bc7b6365c4ff520a42205e?reportId=3b63a54fffa52d14f25ac05890b37d65a15ad4cbd66722900ebad5a5554acd02&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/a3178f3cbfac6e25d5bc7b6365c4ff520a42205e?reportId=3b63a54fffa52d14f25ac05890b37d65a15ad4cbd66722900ebad5a5554acd02&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 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)
