Tools / line-counter

Online line counter — count lines, words, characters

Paste text. See total lines, non-blank lines, blank lines, words, and characters. Live update — nothing uploaded.

0
TOTAL LINES
0
NON-BLANK
0
BLANK
0
WORDS
0
CHARACTERS
INPUT · LINES · CHARS
DONE · ran in 0.00ms
§01 — ABOUT THIS TOOL

How long is this text, really?

A quick read-out of total lines, non-blank lines, blank lines, words, and character count. Useful for spec sheets, social-post drafts, log triage, or asking "how big is this chunk?".

No file upload, no API call. The whole thing runs as a few String.split() calls inside the page. Paste, see the numbers, move on.

§02 — HOW TO USE 03 STEPS
STEP 01 01 / 03

Paste your text

Drop in anything. Whitespace, line endings, weird Unicode — all handled.

STEP 02 02 / 03

Read the stats

Five rows update live: TOTAL LINES, NON-BLANK, BLANK, WORDS, CHARACTERS. Aligned for easy scanning.

STEP 03 03 / 03

Copy or move on

Hit Copy to grab the stats block as plain text — handy for tickets and changelogs.

§03 — QUESTIONS 6 ANSWERS
01

How does it count words?

Anything between whitespace runs counts as one word. Punctuation is part of the adjacent word.

A line that contains only whitespace (or nothing). A line with a single space is blank.

With. The character count is the raw length of the input, including \n.

Most emoji count as 2 (JavaScript string length). We may add a grapheme-cluster count later.

Characters: every Unicode code point counts as 1, so a Han character, an emoji, and a Latin letter all count the same. Words: whitespace-split, which works for English/European text but undercounts CJK (Chinese / Japanese don't use spaces between words). For CJK word counts, you need a segmenter — beyond what we do here. Line and character counts work the same for any script.

Count is the lightest of the eight — just statistics, no result text to render. It handles millions of lines smoothly; the only ceiling is the browser tab's memory budget (≈ 1 GB on most desktops). There's nothing to copy or download here — the numbers update live as you type or paste.

§04 — THE OTHER SEVEN 7 / 07
§ — PRIVACY Your text never leaves your browser. No upload, no account, no logs on what you paste.
PRIVACY PAGE ↗