A line in poetry is whatever the poet broke the text at, regardless of how the words fall on the printed page or how your text editor wraps them. Each line break the author inserted becomes one line, and the Line Counter reads those breaks directly in your browser and reports them as total, non-blank, blank, and longest-line figures. Because poetic forms are often defined by exact line counts — three for a haiku, fourteen for a sonnet, nineteen for a villanelle — being able to verify that count against an authoritative definition matters for both writing and editing. A browser-based line counter handles every common line ending (LF, CRLF, and lone CR) consistently, so the same poem pasted from Word, Notepad, a terminal, or a web clipboard produces the same result. There is no upload and no account, the entire calculation runs locally on the text you paste, and the rules for what counts as a line are stated in plain language right below the result.

Poetry Forms and the Line Counts They Require
Counting lines is rarely just trivia for poets; it is the first mechanical check that a poem meets the form it claims to follow. Traditional Western forms have hard line counts, and the meter, rhyme, and refrains inside those lines only matter once the count is right. Before you paste anything into a tool, it helps to know what number you are aiming for.
The table below lists several widely taught forms and the line count each one requires. Treat it as a target list rather than a style guide.
| Form | Required Lines | Stanza Layout |
|---|---|---|
| Haiku | 3 | One stanza, three lines |
| Tanka | 5 | One stanza, five lines |
| Limerick | 5 | One stanza, five lines |
| Ballad stanza | 4 per stanza | Quatrains, usually several |
| Quatrain (general) | 4 | One stanza |
| Shakespearean sonnet | 14 | Three quatrains plus couplet |
| Petrarchan sonnet | 14 | Octave plus sestet |
| Spenserian sonnet | 14 | Three linked quatrains plus couplet |
| Villanelle | 19 | Five tercets plus quatrain |
| Sestina | 39 | Six sestets plus three-line envoi |
| Ghazal | 5+ couplets | Couplets with refrain |
| Free verse | No fixed total | Author's choice |
These counts are the published conventions of each form. Your own poem may legitimately deviate — Modernist and contemporary poets rework traditional structures constantly — but if you intend to label a piece as a sonnet, the Line Counter gives you the fastest way to confirm the count is exactly fourteen.
What the Line Counter Calls a Line
The way a poem is typed determines what any line-counting tool will report. The Line Counter uses three explicit rules that match how text files actually store breaks.
- An entirely empty paste is zero lines. No characters, no lines at all.
- Once any text appears, there is at least one line. A single word with no trailing break counts as one line.
- Each line feed (LF), each CRLF pair, and each lone carriage return (CR) is exactly one boundary. CRLF is treated as one separator, not two. Mixed line endings inside the same paste are accepted, which matters when text has moved between Windows, Unix, classic Mac, terminal capture, and clipboard sources.
Two consequences fall out of those rules. First, a trailing newline creates a final blank line: the text alpha followed by one LF is two total lines — the alpha line and an empty trailing line. Second, a paste that contains only one CRLF is two blank lines, because the separator has an empty segment on each side. The tool keeps this behavior even when the last segment has no text, instead of silently stripping it. This consistency is exactly what makes the counter usable as a form check.
How to Count Lines in a Poem Using the Line Counter
The procedure is the same whether the poem is a single couplet or a long sestina. Everything happens in the editor itself, and no submit button is needed.
- Copy the poem text. Include every line break the poet used, including blank lines between stanzas. Do not manually reformat the text — keep the breaks exactly as the author placed them.
- Paste it into the editor. The statistics update immediately as soon as the text lands. There is no upload, no server call, and no waiting for a result page.
- Read the four statistics in order. Note total lines, non-blank lines, blank or whitespace-only lines, and the longest line measured in Unicode code points. The interface labels the last metric clearly so you do not mistake it for visual column width.
- Cross-check the math. Total lines should always equal non-blank plus blank lines. If the numbers do not add up, paste again to rule out a copy glitch.
- Compare against your form's required count. A sonnet should read 14 total lines, a haiku 3, a villanelle 19. If the count is off by exactly one and the text ends without a trailing newline, that is the most common source of the discrepancy.
- Clear the editor when you finish. The Clear control wipes the input and resets every statistic to zero, so the next poem you paste does not mix with the previous one.
Reading the Four Statistics
Each number answers a different question about the poem you pasted, and they are designed to be read together rather than in isolation.
- Total lines counts every segment the tool produced after splitting on LF, CRLF, and CR, including blank ones at the start, middle, or end of the file. This is the number to compare against your form's required count.
- Non-blank lines counts every segment that contains at least one character after JavaScript-style Unicode whitespace trimming. A line with spaces around a single letter is non-blank; a line of pure spaces or tabs is blank.
- Blank or whitespace-only lines counts the segments where trimming leaves nothing behind. In a stanza-separated poem, this number is usually the number of stanza gaps plus the trailing segment if the paste ended in a newline.
- Longest line (code points) reports the length of the longest segment in Unicode code points, not UTF-16 code units, bytes, or terminal columns. A supplementary-plane emoji such as 😀 counts as one code point, while a decomposed accented letter such as e followed by a combining acute accent counts as two.
Because the tool never counts a partial paste or silently caps its own display, you can trust the figures for the input that was actually accepted. If the paste ever exceeds the 1,000,000 UTF-16 code-unit input limit, the tool hides the old statistics and reports an error instead of returning a partial result.
Common Edge Cases in Digital Poetry
A few formatting situations trip up the unwary, especially when a poem has been copied from a PDF, an email, or a word processor that uses soft returns.
- Stanza separators. A blank line between stanzas shows up as one blank line in the count. Most form-compliance checks are based on total lines including those blank lines, so leave them in.
- Title and epigraph lines. A title or dedication placed above the poem counts toward the total. If you are verifying a strict form, paste only the body of the poem.
- Visual wraps versus real breaks. A long line that wraps inside a textarea is still one logical line. Wrapping is a display behavior; only LF, CRLF, and CR create new lines.
- Trailing newlines. A paste that ends with a newline will report one extra line compared with a paste that does not. This is the most common reason a supposed haiku reads as four lines instead of three.
- Mixed line endings. If a stanza was edited on Windows and another on a Unix shell, CRLF and LF may sit next to each other in the same paste. The tool counts each correctly without double-counting CRLF as two separators.
- Tab-indented lines. Tabs count as one code point and one character toward the longest-line metric, even though an editor may display them across several columns.
Matching the Counter Against an Editor or Word Count Tool
If you cross-reference the Line Counter with a word processor or a command-line tool, expect occasional differences and know where they come from. Some editors describe lines as newline characters and report a smaller number when the file does not end in a newline; others describe lines as logical records and suppress a trailing empty segment entirely. A few older tools even count CRLF as two line endings. The Line Counter deliberately chooses one consistent rule — every LF, CRLF, or CR creates exactly one boundary, and a trailing newline adds one final blank line — and labels that rule in the interface so the result is reproducible.
For word and character totals, switch to a dedicated counter rather than inferring them from line counts. The Line Counter's focus is the structural count and the longest-line metric, and it does not report words, sentences, bytes, or paragraphs. Once the line count matches your form, move to a syllable or word tool to check the inner rules of the meter.
For reliable comparisons between two versions of the same poem, paste both into the same browser session. Because the calculation is local and deterministic, the same sequence of UTF-16 code units produces the same statistics across reloads. If the two counts disagree, the most likely causes are a missing or extra trailing newline, an editor that auto-stripped blank lines, or a stray soft return in one of the copies. Matching the paste format before comparing is faster than re-editing either version by hand.
If you're weighing options, How to Remove Duplicate Lines in Notepad++ covers this in detail.
If you're weighing options, How to Convert to Pig Latin: Rules and a Quick Tool covers this in detail.