Code Line Counter: Language-Aware Comment Estimates
Estimate code, comment and blank lines for JavaScript, TypeScript, Python, HTML, CSS, SQL or C-style source locally.
Enabling local controls…
1. Local input and options
No uploads, saved input or URL parameters. Input/output: 1 MiB UTF-8 each. Workers stop after two processing seconds (load limit: 10 seconds). At most 10,000 matches per rule; output is complete or rejected.
Quoted strings do not start comments. Mixed code/comment lines count as code; whitespace-only lines stay blank, including inside blocks. Python docstrings count as code. Reading time uses 200 whitespace-delimited words/minute.
A lexical heuristic, not a compiler. Mixed code/comment lines count as code; blank lines stay blank; a final newline adds no phantom line. Regex literals and embedded template languages can differ.
2. Preview and export
Enter input or load a sample, then run.
If clipboard access is denied, select output manually. Processing input changes cancel work and clear old exports.
How to use this tool
Select the actual language and paste source. Compare line categories, Unicode code points, whitespace-delimited words and a reading-time estimate.
When not to use it
A lexical heuristic, not a compiler. Mixed code/comment lines count as code; blank lines stay blank; a final newline adds no phantom line. Regex literals and embedded template languages can differ.
Read the guide →