Word Counter Online

Counts words, characters, and lines in the browser from pasted text. Words are split on whitespace after trim; empty or whitespace-only input is 0 words. The primary character count is JavaScript string length (UTF-16 code units). Text stays on this device.

Word counter online

Client-side only. Pasted text is not sent to a server. There is no signup. Character count is on this same page.

How to use

  1. Paste or type text in the box. Counts update as you type.
  2. Read words, characters (JavaScript string length), characters excluding spaces, and lines.
  3. Nothing is sent to a server. Refreshing the page clears the form.

Results

Words
0
Characters
0
Characters excluding spaces
0
Lines
0
Code points
0

Characters use JavaScript string length (UTF-16 code units). Words are whitespace-split after trim. Client-side only. Not uploaded.

Runs in your browser. Nothing is uploaded.

Frequently asked questions

How does this page count words?

Words are counted by trimming the text, then splitting on whitespace. Consecutive spaces, tabs, or newlines count as one split. Empty or whitespace-only text is 0 words.

How does this page count characters?

The primary character count is JavaScript string length, which counts UTF-16 code units. A code-point count ([...text].length) is also shown. Characters excluding spaces omit the U+0020 space character only. This is not a grapheme-cluster or locale word-break count.

Is there a separate character counter page?

No. Character count is on this same page, together with word count and line count. There is no /character-counter-online/ URL.

Is counting client-side? Is text uploaded?

Counting runs in your browser. Text is not uploaded and is not sent to a server. There is no signup. Refreshing the page clears the form.

How are lines counted?

Lines are counted by splitting on the newline character. Empty input is 0 lines. A single line without a newline is 1 line.

Is there a size limit?

Yes. Input larger than 100KB (100 × 1024 UTF-8 bytes) is rejected. Nothing is sent to a server either way.