Line Counter

Utility Tools

Count lines, empty & non-empty

FreePrivateInstant
Add a file · .txt .md .csv .json … · up to 2.00 MB
Embed this tool on your websiteFree
  1. Choose how tall the frame should be.
  2. Press Copy code.
  3. Paste it into your page, blog, WordPress or Notion HTML block.
Height

The tool runs inside your visitor's browser, nothing is uploaded, and a small "Powered by ToolCloak" line stays under it. The second line (script) is optional: it makes the frame fit the tool's height.

Similar tools you may like

History

All history →

Line Counter — at a glance

Count how many lines your text has — total, filled and empty — plus words and characters.

Your text
line one
 
line three
Count
Stats
Total lines: 3
Non-empty: 2
Empty: 1

How to use it — step by step

Good for code reviews, data files, lists and content checks.

1

Paste text

Paste or type your text or code.

2

See counts

Total, non-empty and empty lines show instantly.

3

Use the numbers

Check against limits or clean up empty lines.

Pro tips

Small things that make the result better.

✦Non-empty lines is the real “lines of content”.
✦Use it to count items in a list — one per line.
✦Large files? Paste in parts.

Quick facts

3 countstotal, empty, non-empty
Liveupdates as you type
+ Wordsand character totals
Privatestays on your device

Frequently Asked Questions

What is Line Counter?+

Count total lines, non-empty lines, and empty lines in any block of text. Also shows word and character totals. Useful for code review, data file inspection, and content auditing.

How do I use Line Counter?+

Open Line Counter on this page, then: 1. Paste text 2. See counts 3. Use the numbers. Everything runs in your browser on a phone or computer.

Is Line Counter free to use?+

Yes. Line Counter on Toolcloak is free, needs no signup and has no hidden limits.

What counts as an empty line?+

A line with no characters or only spaces.

Does it work for code?+

Yes — paste any code and see its line counts.

Is my data safe?+

Yes. Everything runs inside your own browser. Your text, files and images are never uploaded to any server.

Also searched as: line counter · count lines online · number of lines in text · lines count tool · line counter for mobile · line counter free online

More Free Tools