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 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.

More Free Tools