# godotengine/godot SLOC report

> As of 2026-08-31 (commit 5ec4857b340b), godotengine/godot contains 5,728,768 total lines: 4,078,750 code, 726,887 comments, 923,131 blank, across 11,283 files in 34 languages (top: C++ 34.5%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving godotengine/godot to commit 5ec4857b340b, 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 361 code lines per file. C++ accounts for 34.5% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 2,372 | 1,830,486 | 1,406,499 | 160,950 | 263,037 |
| C Header | 4,268 | 1,365,712 | 817,680 | 370,144 | 177,888 |
| PO File | 97 | 893,824 | 624,330 | 5,055 | 264,439 |
| C | 926 | 810,094 | 590,481 | 109,035 | 110,578 |
| C++ Header | 480 | 529,285 | 426,824 | 30,641 | 71,820 |
| C# | 309 | 56,238 | 37,918 | 11,256 | 7,064 |
| XML | 419 | 35,296 | 33,910 | 128 | 1,258 |
| GLSL | 145 | 40,534 | 29,521 | 3,182 | 7,831 |
| Java | 155 | 40,106 | 24,819 | 11,369 | 3,918 |
| Objective-C++ | 70 | 24,037 | 17,702 | 2,680 | 3,655 |
| Python | 341 | 19,119 | 14,149 | 1,341 | 3,629 |
| JSON | 7 | 11,566 | 11,566 | 0 | 0 |

Top language (C++ 34.5%). Generated at 2026-08-31T09:53:01.357949845+00:00. Canonical report: https://octocounts.com/github/godotengine/godot

## Report FAQ

### How many lines of code does godotengine/godot have?

godotengine/godot has 5,728,768 total lines, including 4,078,750 code lines, 726,887 comment lines, and 923,131 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 5ec4857b340b, 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 5ec4857b340b on 2026-08-31T09:53:01.357949845+00:00.

## Similar repository reports

- [RosettaCommons/rosetta](https://octocounts.com/github/RosettaCommons/rosetta) — C++, 4,032,369 code lines
- [facebook/hhvm](https://octocounts.com/github/facebook/hhvm) — C++, 4,624,518 code lines
- [tensorflow/tensorflow](https://octocounts.com/github/tensorflow/tensorflow) — C++, 5,062,672 code lines
- [microsoft/onnxruntime](https://octocounts.com/github/microsoft/onnxruntime) — C++, 2,408,506 code lines
- [ClickHouse/ClickHouse](https://octocounts.com/github/ClickHouse/ClickHouse) — C++, 2,308,757 code lines
- [swiftlang/swift](https://octocounts.com/github/swiftlang/swift) — C++, 2,244,738 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)
- [OctoCounts API docs](https://octocounts.com/docs/api)
