Git Repository Size Calculator

Analyze and visualize the size breakdown of a Git repository by file type and directory.

  • 100% free
  • Private in browser
  • No signup
  • No watermarks
Paste output of: git ls-files -z | xargs -0 -n1 ls -l | awk '{print $5, $NF}'

Total Size

208.5 KB

Files

18

Extensions

10

Size by File Extension

.png
64.0 KB30.7%(1)
.js
56.0 KB26.9%(3)
.jpg
32.0 KB15.3%(1)
.tsx
24.0 KB11.5%(2)
.ts
16.0 KB7.7%(4)
.css
5.0 KB2.4%(2)
.md
5.0 KB2.4%(2)
(no ext)
4.0 KB1.9%(1)
.json
2.0 KB1%(1)
.gitignore
512 B0.2%(1)

Size by Directory

assets
96.0 KB46%(2)
node_modules
48.0 KB23%(2)
src
42.0 KB20.1%(6)
dist
9.0 KB4.3%(2)
tests
6.0 KB2.9%(2)
docs
4.0 KB1.9%(1)
(root)
3.5 KB1.7%(3)

Largest Files

Top 18
assets/logo.png64.0 KB
node_modules/lodash/index.js32.0 KB
assets/banner.jpg32.0 KB
src/components/Button.tsx16.0 KB
node_modules/react/index.js16.0 KB
src/index.ts8.0 KB
src/components/Header.tsx8.0 KB
dist/bundle.js8.0 KB
src/4.0 KB
src/styles/main.css4.0 KB
docs/guide.md4.0 KB
tests/integration.test.ts4.0 KB
src/utils.ts2.0 KB
package.json2.0 KB
tests/unit.test.ts2.0 KB
README.md1.0 KB
dist/bundle.css1.0 KB
.gitignore512 B

Rate this tool

Be the first to rate — helps others and improves this page.

About Git Repository Size Calculator

Git Repository Size Calculator on TheToolss helps you understand where your repository storage is being used. Paste the output of git ls-files with sizes and get a visual breakdown by extension, directory, and largest files.

How to use Git Repository Size Calculator

  1. Run the command: git ls-files -z | xargs -0 -n1 ls -l | awk '{print $5, $NF}'
  2. Paste the output into the input field.
  3. View the breakdown by extension, directory, and largest files.

Key features

  • Breakdown by file extension with size bars
  • Breakdown by top-level directory
  • Top 20 largest files list
  • Visual progress bars for percentage
  • Total size, file count, and extension count summaries

Frequently asked questions

How do I get the file size data?
Run this command in your repo: git ls-files -z | xargs -0 -n1 ls -l | awk '{print $5, $NF}'
Does this include .git folder size?
No, this analyzes tracked files only. The .git directory size is separate.