Paste or upload text
Paste text or upload a TXT, Markdown, CSV, JSON, LOG, or HTML file. Files are read by the browser and do not need to leave your device.
PRIVATE TEXT WORKBENCH
Use this line counter to paste or type text and see total, non-empty, blank, word, character, and longest-line counts in your browser, without a required upload.
INPUT
Paste code, drafts, notes, logs, or any plain text. This line counter updates as you edit.
Example result shown. Edit the text to calculate your own count.
Counted locally in this browser; the normal workflow does not upload your text.
LIVE RESULTS
Blank lines stay visible with labels. Long inputs preview 200 lines; CSV export includes all lines.
Up to 500,000 characters; the first 200 logical lines are previewed. Plain text only—no code execution, layout parsing, or OCR.
A SIMPLE WORKFLOW
This line counter is quick by design, but visible rules make the number easier to trust. Start with the text, confirm the settings, then use the result that fits your task.
Paste text or upload a TXT, Markdown, CSV, JSON, LOG, or HTML file. Files are read by the browser and do not need to leave your device.
Choose All lines or Non-empty lines, then decide how a final newline should be treated.
Review total, non-empty, blank, word, character, longest-line, and line-ending details in the preview.
Copy a text summary or download a CSV with line number, text, length, and blank-line status.
COUNTING RULES
A line count is only useful when its rule is clear. Blank rows, whitespace-only lines, and trailing newlines can display differently across editors.
Every logical line counts, including empty rows between text. Empty input is zero lines; non-empty text without a break is one. A final newline ends the last line by default.
Non-empty lines exclude blank rows. With the whitespace option enabled, spaces-only and tabs-only rows are blank. The preview labels them.
A trailing newline normally terminates the last line. Enable this option when a strict separator-based check should count it.
LF, CRLF, and CR are recognized; mixed input is reported as Mixed. Normalizing endings keeps logical rows consistent.
This line counter counts lines as logical rows and measures characters with Unicode-aware rules. When enabled, normalization measures CRLF or CR separators as LF; splitting recognizes all three.
MORE THAN ONE NUMBER
The line counter's primary result is line count; supporting metrics show what is inside the text and help with editing, code review, data checks, and size limits.
Words are groups separated by whitespace. This is a practical plain-text estimate, not a language-aware tokenizer.
Characters includes spaces and line breaks; the second total removes whitespace. Comparing them shows formatting space.
Longest line reports the widest row's character length, useful for code, CSV, logs, Markdown tables, and fixed-width text.
CSV export contains line_number, text, characters, and is_blank while preserving the complete input order.
PRACTICAL USE CASES
Use a line counter whenever the size or structure of plain text matters, without opening an editor or sending a draft to a server. It answers a one-off question without a spreadsheet or code editor.
Measure source or configuration lines in JavaScript, Python, CSS, YAML, JSON, and more. The tool counts text without interpreting syntax.
Check line, word, and character counts for essays, scripts, drafts, or forms with line-based limits.
Inspect CSV, JSON, or structured text for rows, blank lines, long records, and final-newline differences.
Count log excerpts, subtitles, terminal output, Markdown, or support text before deeper analysis.
Compare total with non-empty lines to see how much blank space a block contains without changing it.
Copy a summary with the active mode and key counts for a teammate, client, teacher, or reviewer.
PLAIN-TEXT FILES
Use this line counter's Upload file action, select a supported text format, and count it in the same local editor.
Accepts TXT, Markdown, CSV, JSON, LOG, and HTML files up to 500,000 characters. PDFs, images, scans, and binary documents need text extraction first; this tool does not run OCR.
Choose a plain-text file; its filename appears beside the editor.
Watch the character total and limit. Oversized input is reported, not silently shortened.
Review the preview, blank rows, longest line, and ending; change options for strict newline rules.
LOCAL BY DESIGN
No account or required upload is part of the normal workflow. This line counter uses JavaScript to count pasted text or a selected file in the current page. The file is read through the browser File API, and the normal path does not send its text body to a conversion server.
Local processing is not a universal security guarantee. Extensions, shared devices, clipboard history, and screenshots remain outside the page's control. Avoid pasting information you are not allowed to process, and clear the editor on shared devices.
Paste text or read a supported file locally; the count is calculated in the page.
Works without sign-in, an API key, or a server-side job.
Edit text or options and see a new result immediately.
COMMON QUESTIONS
These answers describe the tool's default rules and browser-based limits. Use them when comparing results across editors.
Paste or type text; results update automatically with line, word, character, and longest-line counts. The preview also shows line numbers.
Yes. Empty rows between text are included in Total lines and shown as Blank lines; Non-empty lines excludes them. Whitespace-only rows follow the checkbox setting.
Not by default. A trailing newline terminates the last line without creating a hidden phantom row. Enable the option for strict separator semantics.
Yes. Paste or upload source code, configuration, Markdown, JSON, CSV, or logs. The tool counts rows without interpreting syntax; comments are just text to the counter.
Yes. TXT, MD, CSV, JSON, LOG, and HTML are accepted; the browser reads them locally and reports oversized input. The picker does not convert binary documents.
The normal workflow needs no upload or account. Clear the editor on a shared device; extensions and clipboard history remain outside the page's control.
Yes. It also shows words, characters with and without whitespace, and longest-line length. Punctuation stays attached when words are grouped.
The limit is 500,000 characters. Mobile memory can reduce comfort; the visual preview shows the first 200 lines, while CSV export remains complete.
READY TO CHECK
Paste content, choose a rule, and use this line counter's live result or CSV report while keeping the original text editable.