Contador de Líneas

Count lines as you type or paste - handy for lists, code, CSV and addresses

100% gratis. Funciona completamente en tu navegador: tus archivos y datos nunca salen de tu dispositivo y no se sube nada a ningún servidor.

Total lines0
Non-empty lines0
Empty lines0
Longest line0 chars
Words0
Characters0
Number lines when copying

Acerca de esta herramienta

Word counters are common; a dedicated line counter is not, even though "how many lines is this" is a genuinely different question - relevant for CSV row counts, address lists, code files with a line-count limit, or checking how many rows a spreadsheet paste will produce. This tool counts lines live as you type or paste, and separates empty lines from non-empty ones, since a blank line at the end of a pasted list often should not count toward "how many items do I have".

Cómo usar esta herramienta

  1. Paste or type your textAny plain text - a list, code, CSV rows, addresses.
  2. Read the statsTotal lines, non-empty lines, empty lines, longest line, word count and character count update live.
  3. Copy with line numbers if neededThe copy button adds a right-aligned line number to each line - handy for referencing a specific row later.

Por qué usarla

  • Separates empty lines from non-empty ones - a genuinely useful distinction a plain word counter does not make.
  • Finds the longest line automatically - useful for spotting a runaway CSV row or an overly long line of code.
  • Optional line-numbered copy in one click.
  • Updates live with no button to press - paste and read the numbers immediately.

Usos comunes

  • Checking how many rows a CSV or address list will produce before pasting into a spreadsheet.
  • Confirming a code snippet fits under a line-count limit for a form field or platform.
  • Counting entries in a pasted list (usernames, email addresses, SKUs) before a bulk-import step.
  • Spotting the single longest line in a block of text, which is often the one causing a layout or wrapping problem.

Consejos para mejores resultados

  • An empty textarea correctly reports 0 lines, not 1 - if you paste one line with no trailing newline, that also correctly reports 1, not 0.
  • A trailing blank line at the end of pasted text (common when copying from a spreadsheet) shows up in "Empty lines" - subtract it from "Total lines" if you specifically need the item count.
  • "Longest line" is measured in characters, not visual width - a line full of narrow characters (like "iiiii") will report the same length as one with wide characters, even though it looks shorter.
  • Line-numbered copy right-aligns the numbers so they stay tidy even once you pass line 100.

Preguntas frecuentes

Zero. Splitting an empty string on newlines technically produces one empty element in most programming languages, which would incorrectly report "1 line" for a blank box - this tool special-cases that so an empty textarea genuinely reads 0.

A line that contains nothing, or only whitespace (spaces or tabs), after trimming. A line with a single space and nothing else counts as empty for this purpose, since it holds no visible content.

Yes - toggle "Number lines when copying" and use the Copy button; each line gets a right-aligned number and two spaces before the original content.

No hard limit is enforced by the tool itself, though extremely large pastes (tens of thousands of lines) may feel slower in the browser since counting happens live on every keystroke.

La gente también busca

  • line counter online
  • count lines in text
  • number of lines in a paragraph
  • count rows in list
  • line count tool free

Related guides