Developer Utility

Project Code Line Counter

Select or drag any project folder to calculate total code lines, comments, blank lines, and file distribution. Entirely runs in your browser - 100% private and offline.

Select or Drag Your Project Folder

Supports JavaScript, TypeScript, Python, PHP, HTML, CSS, C/C++, Java, Go, Rust, SQL, Vue, Svelte & more

Or drag & drop any project folder or files anywhere into this box

Scanning project files...

About this code line counter

This free code line counter measures how big a project really is. Select or drag a folder and it reports total lines of code, comment lines, blank lines and file counts, broken down by programming language.

Everything runs inside your browser, so your source code is not uploaded anywhere. It is handy for estimating project size, writing a proposal, reporting progress or comparing codebases.

Features

  • Lines of code, comments and blank lines counted separately
  • Per-language breakdown so you see which languages dominate
  • Drag and drop a whole folder instead of selecting files one by one
  • Private by design: processing happens locally in your browser

How to use the code line counter

  1. Open the tool and select a project folder, or drag it onto the drop zone.
  2. Wait a moment while the files are scanned.
  3. Read the totals and the language breakdown, and open any file to inspect its code.

Frequently asked questions

How do I count lines of code in a project?

Drag your project folder into the drop zone. The tool scans it and shows total lines, comments, blank lines and a breakdown by language.

Is my source code uploaded to a server?

No. The tool runs in your browser, so your files stay on your device.

Does it count comments and blank lines separately?

Yes. Code, comment and blank lines are reported as separate numbers so you can see the real code size.

Is the code line counter free?

Yes, it is free to use with no sign-up.

More free tools

Need a custom tool or website like this? I build full stack web apps, APIs and online stores.

Get a free quote →