Total lines
0
Paste code to count total, blank, comment and code lines — with per-line classification.
Pasted code is counted in your browser and never sent to a server.
Detected language
Plain text
Auto-detection is approximate. Choose a language for exact counting.
Total lines
0
Code lines
0
Blank lines
0
Comment lines
0
Code + comment
0
Comment ratio
0.0%
Characters
0
UTF-8
0 bytes
Examples
A free line-of-code counter. Paste source code and get total lines, code lines, blank lines, comment lines and the comment ratio, plus a per-line breakdown so you can see exactly how each line was classified.
JavaScript, TypeScript, CSS, HTML, Python, Shell, SQL, Markdown and plain text. Auto-detection is available, but choose a language explicitly for exact comment rules.
Lines that contain only a comment are comment lines; lines with both code and a trailing comment are counted separately as code + comment, so totals stay consistent.
No. Everything is counted locally in your browser.
Calculate the number of days between two dates, or the date N days from now.
Calculate exact age from a date of birth, including days lived and next birthday.
Count business days excluding weekends and Japanese national holidays.
Count characters, lines, paragraphs and bytes of text in real time.
Merge, extract and rotate PDF pages locally in your browser.
Write Markdown with live preview, HTML copy and .md download.
Trigonometry, logarithms, exponents, factorials, history and memory.
Convert length, weight, area, volume, temperature and data size.
Convert between Unix timestamps, ISO 8601 and local date-times.
Percentages, increase/decrease rates, discounts and reverse calculation.
Compress JPEG, PNG and WebP images in bulk, entirely in your browser.
Convert between HEIC, JPEG, PNG, WebP and more without uploading files.
Create QR codes for URLs, text and Wi-Fi credentials in your browser.
Extract color palettes from images and copy them as CSS variables.
Compute and verify MD5, SHA-256 and other hashes for text and files.
Generate strong passwords, passphrases and PINs locally.
Compute HMAC signatures and verify webhook signatures in your browser.
Save the current page as a single self-contained HTML file.
Clean invisible characters, extra line breaks and width inconsistencies.
Measure download/upload speed and ping in your browser.
Check connectivity, DNS, IPv6 and the node you are connected through.
Format, validate and minify JSON with precise error locations.
Encode and decode URLs and query strings, including non-ASCII text.
Test regular expressions with live matches, groups and replacement.
Query DNS records (A, AAAA, MX, TXT and more) with TTLs, DNSSEC and ASN hints.
Check CSV/TSV structure, detect encoding (UTF-8, BOM, Shift_JIS) and convert to JSON.
Compare two texts or JSON documents and review additions, deletions and changes in your browser.