Skip to contentSkip to the inputSkip to the result

Character, word & byte count

Check text length, word count and UTF-8 storage size.

Loading tool

Instructions

Character, word & byte count

How to use

  1. Paste or type text.
  2. Counts update automatically as you edit.

Supported input

  • Characters are counted as they appear, so an emoji sequence is one; UTF-16 input limits use a different unit.
  • Up to 200,000 input units.

Input example

Hello 한글

Result example

8 characters; UTF-8 counts Korean characters by bytes

Troubleshooting

  • Check required inputs, numeric ranges and the selected conversion direction.

How it works

  • Check text length, word count and UTF-8 storage size.

Why character, byte and word counts never quite agree

Which number answers which question

  • Characters with and without spaces: essay limits, abstract limits, contest entries and form fields that a person set.
  • UTF-8 bytes: what a web service or database actually stores. Fields and APIs that cap length in bytes reject text by this figure, not by characters.
  • EUC-KR bytes: the older Korean count of 2 bytes per Hangul syllable and 1 per Latin letter, still behind some Korean SMS and legacy form limits.
  • Words and lines: English word limits, poems, subtitles, or how long a block of code is.

Three ways to count “one character”

What you see as one character and what a computer stores are different things. A thumbs-up with a skin tone, 👍🏽, is one symbol on screen, two Unicode code points, four units in a JavaScript string (which counts UTF-16 code units) and eight bytes in UTF-8.

The character count here is the number of grapheme clusters, the user-perceived characters defined in Unicode UAX #29, found with the browser’s Intl.Segmenter. A flag such as 🇰🇷, a family emoji 👨‍👩‍👧, or an e followed by a separate combining accent each count as one. Browsers without Intl.Segmenter fall back to counting code points.

The same rules make a Windows line break, carriage return plus line feed, a single character. A site that counts each line break as two will come out higher by one per line.

How UTF-8 bytes add up

UTF-8, specified in RFC 3629, spends one to four bytes per code point depending on its number. The byte total is simply this table applied to every code point.

  • U+0000 to U+007F, 1 byte: plain English letters, digits, spaces and basic punctuation.
  • U+0080 to U+07FF, 2 bytes: accented Latin letters such as é and ñ, Greek, Cyrillic, Hebrew, Arabic.
  • U+0800 to U+FFFF, 3 bytes: Hangul syllables (U+AC00 to U+D7A3), Chinese characters, Japanese kana, the curly quote ’ and the zero-width joiner that glues emoji together.
  • U+10000 and above, 4 bytes: most emoji and the regional letters that make up flags.

Worked example

  1. 1“Hello, world!” is 13 characters with spaces, 12 without, 2 words, and 13 UTF-8 bytes, because every character is in the one-byte range.
  2. 2The Korean sentence 안녕하세요. 저는 키토입니다. is 16 characters, but its 12 Hangul syllables take 3 bytes each: 36 bytes, plus 4 for the two full stops and two spaces, 40 in all.
  3. 3The family emoji 👨‍👩‍👧 counts as 1 character, yet it is three people at 4 bytes each joined by two 3-byte joiners: 18 bytes.
  4. 4So a 280-byte limit holds 280 English letters, 93 Korean syllables, or only 15 of those family emoji.

Treat the EUC-KR figure as an estimate

The EUC-KR count shown with the results gives 1 byte to each ASCII character and 2 to everything else. For Korean and English text that is exact.

The original EUC-KR character set, KS X 1001, holds only 2,350 Hangul syllables, so a syllable such as 똠 cannot be written in it; the extended Windows code page 949 covers all 11,172 at 2 bytes each, and that extended form is what the WHATWG Encoding Standard, and therefore every browser, means by “EUC-KR”. Emoji cannot be stored in either, yet the tool still counts 2 bytes per code point (👍🏽 shows as 4), so ignore that figure for text with emoji.

When your number differs from someone else’s

  • Words are runs of text between spaces, so “well-known” and “don’t” are one word each. Word processors may split at hyphens or ignore lone symbols.
  • Reading time assumes 230 words a minute and speaking time 140 words a minute in English (500 and 300 non-space characters a minute in Korean). Time a speech by reading it aloud.
  • If a form rejects text the tool says is short enough, the form may be counting UTF-16 units or bytes. Compare its limit with the byte figure before cutting words.

Checked

Frequently asked questions

Do character limits include spaces?

It depends on who sets the limit, so check their rules. This tool shows both counts, and a line break counts as a character in the with-spaces figure. For example, '가 나' followed by a new line and 'A' is 5 characters with spaces and 3 without.

How many bytes is one Korean character?

3 bytes in UTF-8 and 2 bytes in EUC-KR. The tool shows both. The SMS 90 bytes target uses EUC-KR, so it fits 45 Korean characters.

How many characters is one emoji?

One, as it looks on screen. The tool counts user-perceived characters (grapheme clusters), not Unicode code points. A thumbs-up with a skin tone, 👍🏽, is 2 code points and a family emoji made of three people and two joiners is 5, yet each counts as 1. Sites that count code points or UTF-16 units show more, and in UTF-8 they take 8 and 18 bytes.