3 Free Software To Count Lines Of Code

Editor Ratings:
User Ratings:
[Total: 0    Average: 0/5]

Here, is a list of 3 free software to count lines of code.

Lines of code (LOC) is a standard metric for counting the size of a computer program or efforts involved. It’s a measure of the exact lines of code in a program, excluding all blank lines, pure white spaces, and lines containing only comments. But the question is how you can count these lines of code in your program?

Lines of code will vary between languages,  programmers, bracing style, commenting style, levels of experience, and corporations. So you need to have a good tool that can count the lines of code in your program, and gives you an idea of its complexity or productivity.

To help you out, we have found some free software to count lines of code. Have a look and give them a try.

Universal Code Lines Counter:

Universal Code Lines Counter interface
Sponsored Links

Universal Code Lines Counter is a free application that counts the exact number of source code lines in a software project. It’s a handy and reliable tool that separately counts the lines of code, blank lines, and comments in multiple files in one go. Universal Code Lines Counter comes with an intuitive program interface that not only counts the source code lines, but also gives you detailed report of your software project as table or as graphics (in pie chart form).

By default it supports many programming languages including C#, C/C++, AutoIt, CSS, Delphi/Pascal, Java, JavaScript, HTML, Modula 2/3, MySQL, PHP, Prolog, Python, Perl, Ruby, VBScript/ASP, XML and Visual Basic. Plus it gives you options to configure it for more programming  or script languages. Download free and give it a try!

Price: Free

Works With: Windows

Get it here: Click here to Get Universal Code Lines Counter.


LineTally interface

LineTally is a another free desktop application that lets you easily count the lines of code, comment lines, mixed lines, and blank lines in your project. It’s a lightweight tool for counting the size metrics for a single file, or for all the files in your project simultaneously. Plus, it gives a summary of total project statistics for quick reference.

LineTally supports a wide range of programming languages (more than 60), including Visual Basic, Visual Basic.NET, VBScript, B++, C/C++, C#, J#, SQL/Oracle SQL, Informix, AWK, Haskell, Delphi, HTML, Pascal, Cold Fusion, Fortran 77, Fortran 90/95, XML, Batch, Objective-C, Java, PHP, ASP, Forth, and lot more!

LineTally works with high accuracy and produces super fast results. Apart from that, it lets you export reports to CSV, HTML, or TXT format. Download free and check it out now!

Full Review: Click here to read full review.

Price: Free

Works With: Windows

Get it here: Click here to get LineTally.


locmetrics interface

LocMetrics is another free tool that counts the total number of code lines in your project. It’s a simple and easy to use application that provides detailed information on your project metrics including count of total lines of code (LOC), comment lines of code (CLOC), blank lines of code (BLOC), logical source lines of code (SLOC-L), lines with both code and comments (C&SLOC), McCabe VG complexity (MVG), number of comment words (CWORDS), header comments (HCLOC), and header words (HCWORD).

LocMetrics scans your entire project directory and generate excel reports in CSV format containing information on individual project file metrics. It saves the reports in the source folder by default if you don’t provide the destination folder. And it also generates a comment word histogram and saves it in the same folder for visual analysis. On the interface, it displays the progress of the LOC count of the entire project which gives you an idea of total project statistics.

LocMetrics supports a limited number of languages and it can scan files with *.cpp, *.cc, *.h, *.hpp, *.inl, *.cs, *.java, or *.sql extension. Download free and give it a try!

Price: Free

Works With: Windows

Get it here: Click here to get LocMetrics.

These were some of the best free code line counting tools I have found that supports multiple programming languages to count lines of code for all the files in your entire project. If you find some other useful software, do let us know in comments.

Editor Ratings:
User Ratings:
[Total: 0    Average: 0/5]
Free/Paid: Free
  • peterdrinnan

    Universal Code Lines Counter installed a bunch crap like browser toolbars without even asking. Took me 20 minutes to remove. Screw that!

  • Mark Straver

    Of the three here, only LocMetrics is acceptable to offer as a recommendation. Universal Code Lines Counter tries to install crapware along with the program if you don’t uncheck “Browser security” as an option in the installer (beware!) and can only analyze one language at a time (pointless for mixed-code projects).
    LineTally is useless because you have to add each source file individually (it doesn’t know how to scan a directory tree) so only catering to very small projects.
    LocMetrics is great: single .exe, no-frills. It’s fast, accurate, scans entire directory trees as default – exactly what a SLOC should do.

Advertisment ad adsense adlogger