Loading tool…
Count the total lines, non-empty lines and characters in any block of text.
Loading tool…
Line Counter is a free, private online tool that lets you count the number of lines, non-empty lines and characters in text. It runs entirely in your browser, so nothing you enter is uploaded to a server.
Privacy: this tool runs entirely in your browser. Your input is never sent to, received by, or stored on any server — there are no uploads and no tracking of what you enter.
It reports total lines, non-empty (non-blank) lines, and total characters at a glance.
Checking file line counts, list sizes, and code or data length without a terminal.
Everything is counted locally in your browser.
A line counter reports how many lines a block of text contains, along with the number of non-empty lines and the total character count. It is a quick utility for checking the size of lists, logs, data files and code without opening a terminal or spreadsheet.
The tool distinguishes between every line (including blank ones) and just the non-empty lines that actually contain content. This matters because blank lines pad a file's apparent length - a 100-line file with lots of spacing may hold far fewer real entries. Seeing both numbers gives an honest picture of how much is really there.
Line counts come up constantly: confirming a data export has the expected number of rows, checking how many items are in a list, estimating the size of a code file, verifying a paste was complete, and comparing two files' lengths. It is the kind of small check that is awkward to do by eye but trivial with a counter.
Different tasks need different units. A line counter answers 'how many rows/entries?', a word counter answers 'how long is this writing?', and a character counter answers 'will this fit the limit?'. This tool focuses on lines and characters; for word and reading-time statistics, use the Word Counter.
Paste or type your text and the line, non-empty-line and character counts update instantly. It runs entirely in your browser, so large or sensitive files are counted locally with nothing uploaded.