Skip to content

Calculate String Length

Counts the characters in your text, including spaces and punctuation.

0 characters

What is String Length Calculator?

The length of a string is the number of characters it contains. Programmers use it to check limits such as a username size or a text field maximum.

What this tool does

Counts the characters in your text, including spaces and punctuation, and shows the total.

How to use it

  1. Paste or type your text into the box.
  2. Press the calculate button, or leave Auto on to see the count as you type.
  3. Read the length shown beside the box.

Did you know?

  • Spaces, line breaks and punctuation all count as characters.
  • JavaScript counts text in 16-bit units, so some emoji count as 2 even though you see only one symbol.

More tools in this category