# godotengine/godot SLOC report

> As of 2026-09-21 (commit 57277407e77e), godotengine/godot contains 5,774,362 total lines: 4,110,867 code, 734,866 comments, 928,629 blank, across 11,361 files in 35 languages (top: C++ 34.4%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

godotengine/godot has 4,110,867 source lines of code out of 5,774,362 total lines across 11,361 files, counted from the master ref at commit 57277407e77e by the OctoCounts tokei engine on 2026-09-21. 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 godotengine/godot to commit 57277407e77e, 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 71.2% of all lines, comments represent 12.7%, and the repository averages 362 code lines per file. C++ accounts for 34.4% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 2,385 | 1,840,969 | 1,414,228 | 162,378 | 264,363 |
| C Header | 4,291 | 1,377,141 | 823,512 | 374,405 | 179,224 |
| PO File | 97 | 893,824 | 624,330 | 5,055 | 264,439 |
| C | 941 | 826,738 | 603,634 | 110,482 | 112,622 |
| C++ Header | 484 | 534,635 | 430,927 | 31,328 | 72,380 |
| C# | 309 | 56,386 | 37,930 | 11,391 | 7,065 |
| XML | 426 | 35,650 | 34,253 | 129 | 1,268 |
| GLSL | 146 | 40,785 | 29,700 | 3,202 | 7,883 |
| Java | 155 | 40,190 | 24,864 | 11,398 | 3,928 |
| Objective-C++ | 70 | 24,215 | 17,823 | 2,698 | 3,694 |
| Python | 344 | 19,208 | 14,218 | 1,347 | 3,643 |
| JSON | 7 | 11,538 | 11,538 | 0 | 0 |

Top language (C++ 34.4%). Generated at 2026-09-21T09:05:30.004855962+00:00. Canonical report: https://octocounts.com/github/godotengine/godot

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/godotengine/godot/commit/57277407e77e61b161f35dbd7aeb510f7a9e26a6?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 godotengine/godot have?

godotengine/godot has 5,774,362 total lines, including 4,110,867 code lines, 734,866 comment lines, and 928,629 blank lines.

### How was the godotengine/godot line count measured?

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

### What commit was counted for godotengine/godot?

This OctoCounts report was generated from master at commit 57277407e77e on 2026-09-21T09:05:30.004855962+00:00.

## Similar repository reports

- [RosettaCommons/rosetta](https://octocounts.com/github/RosettaCommons/rosetta) — C++, 4,032,379 code lines
- [facebook/hhvm](https://octocounts.com/github/facebook/hhvm) — C++, 4,641,684 code lines
- [tensorflow/tensorflow](https://octocounts.com/github/tensorflow/tensorflow) — C++, 5,100,331 code lines
- [ClickHouse/ClickHouse](https://octocounts.com/github/ClickHouse/ClickHouse) — C++, 2,377,034 code lines
- [mongodb/mongo](https://octocounts.com/github/mongodb/mongo) — C++, 5,888,453 code lines
- [swiftlang/swift](https://octocounts.com/github/swiftlang/swift) — C++, 2,131,342 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)
