Skip to content
Developer & CodeLocal · Stays on device

Line Counter

Count code, comment and blank lines by language for pasted code, files or a whole project ZIP.

Launch Line Counter
  • 35+ languages by file extension, ZIP archives, Pasted code
  • Batch ZIP export
  • No sign-up or watermark
line-counterOn this device
1
2
3
4
5
6
7
8
9
10
1
2
3
4
5
6
7
8
9
10
35+ languages by file extensionZIP archivesPasted code
Open Line Counter

About this tool

Drop source files, a folder’s files, or a ZIP of a whole project to see how many lines are code, comments and blank — per language and per file, like the cloc command-line tool. More than 35 languages are recognised by extension, including JavaScript, TypeScript, Python, Java, C#, Go, Rust, PHP, Ruby, SQL, HTML, CSS, shell, YAML and Dockerfiles. Inside ZIPs, node_modules, .git, dist, build and vendor folders are skipped, and binary files are ignored.

A line with code followed by a comment counts as code; lines inside block comments count as comments; comment markers inside simple string literals are ignored. You can download the per-file counts as CSV, or paste a snippet to count it directly. Everything runs in your browser. Your data is never uploaded, logged or stored.

  1. Input

    Your code or text

    35+ languages by file extension, ZIP archives, Pasted code

  2. Processing

    Processed in this browser

    In-browser. Nothing is uploaded.

  3. Output

    Your result

    Ready to download or copy

Local processing pipelineJSZip (for ZIP files)

How to use it

  1. 1

    Drop files or a ZIP, or switch to Paste code.

  2. 2

    Read the totals and the per-language table.

  3. 3

    Download the per-file CSV if you need it in a spreadsheet.

Zero-upload architecture

How to use Line Counter for free, with no upload

Free, with no sign-up or watermark · Your files stay on your device · Batch ZIP export included

  1. 1

    Open Line Counter

    Launch the app and add your file. There is nothing to install and no account to create.

  2. 2

    Work through it

    Read the totals and the per-language table.

  3. 3

    Get your result

    Download the per-file CSV if you need it in a spreadsheet.

  • Local

    Code Complexity Estimator

    Estimate the cyclomatic complexity of each function in pasted JavaScript, TypeScript, Python or C-like code.

    Open tool
  • Local

    ZIP Extractor

    Open ZIP files in your browser: browse contents, preview text and images, and extract files.

    Open tool
  • Local

    Word Counter

    Count words, characters, sentences and paragraphs, with reading time and keyword density.

    Open tool
  • Local

    JSON Formatter

    Pretty-print, beautify and validate JSON with precise error locations, key sorting and custom indentation.

    Open tool