Source Lines of Code (SLOC) Counter

"How big is this project?" Paste code and get a tokei-style breakdown: code lines, comment lines, blank lines — with a simple language picker for comment syntax.

—
Embed this tool on your website / blog No code required · Copy and paste
HTML Embed Code (iframe):
<iframe src="https://lucentool.com/code-line-counter" width="100%" height="650" style="border:1px solid #e5e0d8;border-radius:12px;max-width:850px;width:100%;" frameborder="0"></iframe>
<div style="font-size:12px;color:#78716c;margin-top:6px;font-family:sans-serif;">Powered by <a href="https://lucentool.com/code-line-counter" target="_blank" style="color:#c85a32;text-decoration:none;">Lucentool - Source Lines of Code (SLOC) Counter</a></div>

What LOC stats mean

Lines of code (LOC) is the classic project-size metric — flawed but useful for estimates, code review load and "how much did we write". The useful split is code vs comment vs blank: high comment ratio often means a complex or well-documented file; high blank ratio suggests poor structure; a huge code count in one file is a refactor signal.

How the counting works

Real-world use