Skip to content

Code Analysis & Debugging · free · no sign-up

Code Line Counter

Count the lines in source code, split into code, comments and blank lines.

How it works Report a problem

Code Line Counter

Analyze source code to count total lines, empty lines, and comments.

Input Data

About the Code Line Counter

Count the lines in source code, split into code, comments and blank lines.

How to use the Code Line Counter

  1. Paste your code into the input box, or click Sample to load an example.
  2. Press Process Now.
  3. Use Copy (or Download where shown) to keep the result. Clear empties the box.

Tips

  • Lines of code is only a rough size measure and says nothing about quality.

Frequently asked questions

Why count lines of code?
To get a rough idea of a project's size or to check how much of a file is comments.