Skip to content

Text Tools

Character Counter

Count characters with and without spaces.

Your information is processed in your browser and is not uploaded to our servers.

Text

Characters

Characters (with spaces)

0

Characters (no spaces)

0

Lines

0

Words

0

About this tool

Characters are counted with JavaScript string length (UTF-16 code units), with a second total that ignores whitespace.

How to use

  1. Paste text.
  2. Compare characters with spaces, without spaces, lines and words.

Formula and methodology

characters = value.length. charactersNoSpaces = value.replace(/\s/g, '').length. lines split on newline.

Worked example

"Hi there" is 8 characters with spaces and 7 without.

Frequently asked questions

Do emojis count as one character?+

Some emojis use two UTF-16 code units, so they count as 2 here, matching JavaScript string length.

Is text stored?+

No.

Related tools