{}
Files stay on your device

Line Counter

Count total, blank, and nonblank lines plus Unicode characters in pasted text or a local file.

Private browser workspaceInput: UTF-8 text  →  Output: Counts, JSON
Your file never leaves this browser

Processing happens locally using browser APIs and on-device code. Closing this tab clears the working data.

How it works

Done in three simple steps

01

Open a local file or use the input controls.

02

Paste text or open a UTF-8 file, then count its lines.

03

Review the result, then download it.

Good to know

Frequently asked questions

Does this tool upload my input?+

No. Your input is processed on your device using browser APIs and local code.

How are Windows line endings counted?+

CRLF is one line break, just like LF or CR. A line containing only whitespace counts as blank.

What are the limits?+

5-million-character limit. Empty input has zero lines; a trailing line break adds one blank line.