CanDoYa
ZH-TW

行數計數器 免費

全程在瀏覽器裡執行,免上傳、免註冊。

你的文字
0總行數
0非空白行
0空白行
0字詞
0字元
0不含換行符
行長度
平均字元 / 行0
最長行0
最短非空白行0
分享這個工具

What is a 行數計數器?

A 行數計數器 counts total lines, non-empty lines and blank lines in pasted text. It also shows words, characters and line-length stats as you type. Everything runs in your browser, so your text is not uploaded and you do not need an account.

使用方式

  1. 1Paste your text. Type or paste any text into the box above. Each line break is counted.
  2. 2Read the live totals. See total lines, non-empty lines, blank lines, words and characters update instantly.
  3. 3Check line length. Use the average, longest and shortest line-length stats to spot very long or empty rows.

適合誰用

This 行數計數器 runs entirely in your browser with plain JavaScript, so logs, CSV snippets, notes and drafts stay on your device. It accepts Unix, Windows and old Mac line endings, then normalizes them for consistent counting.

常見問題

Is the 行數計數器 free?

Yes. The tool is free to use with no account, no download and no usage limit.

Is my text uploaded anywhere?

No. All counting happens locally in your browser, so your pasted text stays on your device.

Does it count blank lines?

Yes. The tool shows total lines, non-empty lines and blank lines separately, so you can decide which count matters for your task.

Does a trailing newline count as a line?

Yes. If your text ends with a line break, the counter treats the space after it as a final blank line.

Which line endings does it support?

It supports LF, CRLF and CR line endings. Windows, macOS, Linux and terminal output all count consistently.

Can I count lines in code or CSV data?

Yes. Paste code, logs, CSV, TSV or one-item-per-line lists. The tool treats the content as plain text and never uploads it.