Line Counter: Sample sentence
{
"text": "Hello world. This is a sample."
}
{
"words": 6,
"characters": 30,
"characters_no_spaces": 25,
"lines": 1,
"sentences": 2,
"paragraphs": 1,
"primary": 1
}
Text Tools
Count physical lines, blank lines, words, characters, paragraphs, and sentences as you type.
Published Last reviewed
Inspect the structure of pasted text in a line-aware editor with a synchronized number gutter. Live metrics distinguish content and blank lines, report words and characters, estimate paragraphs and sentences, and identify the longest line and average words per physical line. Copy, clear, or load a sample without submitting a form. Counting happens entirely in the browser and preserves the line breaks present in the source.
Workspace
Paste or type source text below; the readout summarizes it without changing it.
This workspace updates as you edit.
Choose the values that apply, then count.
Normalize CRLF/LF separators, count newline-delimited source lines, then apply Unicode token and blank-line heuristics for the supporting metrics.
A non-empty document has one physical line plus one additional line for each newline separator, including a trailing blank line after a final newline. Empty input reports zero lines. Word counting uses Unicode-aware letter and number tokens; paragraphs are blocks separated by blank lines, and sentence count is a punctuation-based estimate. Browser visual wrapping does not create additional source lines.
{
"text": "Hello world. This is a sample."
}
{
"words": 6,
"characters": 30,
"characters_no_spaces": 25,
"lines": 1,
"sentences": 2,
"paragraphs": 1,
"primary": 1
}
This tool does not store your inputs or results on UtilityPages.org.
No. The counter measures newline characters in the source. A long line that wraps visually inside the editor remains one physical line until an actual line break is inserted.
Yes. Blank lines are included in the total and reported separately in the on-page breakdown. Empty input is treated as zero lines rather than one blank line.
A paragraph is a non-empty block separated from another block by at least one blank line. A single newline within a block changes the line count but not the paragraph count.
No. The text is analyzed locally in the current browser page and UtilityPages does not retain a document history.