Character Counter

Type or paste text to instantly count visible characters, characters excluding spaces, words, lines, UTF-8 / UTF-16 / Shift_JIS byte sizes, full-width vs. half-width breakdown, and a character-type breakdown. All counting runs in your browser.

0
Visible characters
0
Excluding spaces
0
Words
0
Lines
0
UTF-8 bytes
0
UTF-16 bytes
0
Shift_JIS bytes (approx.)
0
Code points
0
JavaScript length
0
Full-width characters
0
Half-width characters
0
URL-encoded length

Character type breakdown

0
Hiragana
0
Katakana
0
Kanji
0
Letters
0
Digits
0
Symbols
0
Spaces & newlines
0
Other

On supported browsers, "Visible characters" is counted in grapheme units using Intl.Segmenter.

ABOUT

About this character counter

The T-APPS520 character counter analyzes the text you enter in real time and lets you check several counting methods at once. It is useful for social media posts, form character limits, manuscripts, reports, and proofreading.

It separately displays not just a simple "string length", but also the visible character count, characters excluding spaces, word count, line count, and the byte size in UTF-8. Because the definition of "one character" differs by purpose, you can compare multiple metrics side by side.

COUNTING

There are several ways to count "characters"

JavaScript's String.length returns the number of UTF-16 code units, not the number of characters a person perceives on screen. As a result, some emoji and combining characters look like one character but have a length of 2 or more.

Example: a string containing an emoji
"A😀B".length
// 4 in UTF-16 code units

On supported browsers, this page also measures grapheme units — the units users perceive visually — using Intl.Segmenter. If a system's input limit is based on JavaScript's length, check the "JavaScript length" value as well.

METRICS

What each metric means

MetricWhat it countsTypical use
Visible charactersGrapheme unitsChecking the length of text people read
Excluding spacesCharacters excluding spaces and newlinesChecking the volume of the body text only
WordsWords separated by spacesA guide for English or mixed text
LinesLines split by newlinesChecking manuscripts, logs, and code
UTF-8 bytesData size when encoded as UTF-8A guide for API, DB, and transfer sizes
UTF-16 bytesData size when encoded as UTF-16 (no BOM)A guide for string sizes in Windows systems, Java, etc.
Shift_JIS bytes (approx.)Estimated data size when encoded as Shift_JISA guide for legacy systems and CSV integration
Full-width / Half-width charactersClassification by character width (half-width kana counts as half-width)Checking input limits and digit counts
URL-encoded lengthString length after applying encodeURIComponentChecking URL parameter lengths
Character type breakdownHiragana / Katakana / Kanji / Letters / Digits / Symbols / Spaces & newlines / OtherReviewing text composition
Code pointsUnicode code pointsTechnical checks of character data
JavaScript lengthUTF-16 code unitsComparison with JS string handling

HOW TO

How to use

  1. Enter your textType directly into the text area or paste the text you want to check.
  2. Check the resultsEvery count updates as you type. No button presses are needed.
  3. Use the value that fits your purposeFor posting limits, follow the service's specification; for data size, check the UTF-8 bytes, and so on.

PRIVACY

How your text is handled

Character counting runs in your browser.

We do not send the text you enter to T-APPS520's servers for the purpose of counting characters.

We recommend not pasting confidential information such as passwords or access tokens into web pages unless necessary. For details, see our Privacy Policy.

FAQ

FAQ

Does an emoji count as one character?

On supported browsers, we use Intl.Segmenter to count in grapheme units. Even an emoji made up of multiple code points may count as one if it appears as a single character.

What is the UTF-8 byte size?

It is the number of bytes when the string is encoded as UTF-8. Character count and data size are not the same, so it is a useful reference when checking API or storage sizes.

Why is the Shift_JIS byte size "approximate"?

Because browsers have no built-in way to convert to Shift_JIS, we estimate the byte size from character ranges. Characters not included in JIS X 0208 (such as emoji) are counted as 2 bytes, as they would become replacement characters when converted.

Is the text I enter saved anywhere?

We have not implemented any processing that sends or saves your input on T-APPS520's servers for the purpose of counting characters.

Is it free to use?

Yes. The T-APPS520 character counter is free to use.

REFERENCES

References