Example: a friendly opener with two emoji
A sales person writes a short opener for a message to a café owner and adds a wave and a Union flag. To a reader it is 34 characters long.
Underneath, the numbers diverge. The flag is made of two code points, so there are 35 code points. The wave takes two UTF-16 units and the flag four, which brings the JavaScript length to 38, and in UTF-8 the emoji and the é need several bytes each, giving 45. A form that limits the message to 35 characters may therefore reject text that looks well under the limit.
Hi Jo 👋 quick one about the café 🇬🇧
Characters 34 Without spaces 26 Words 9 Lines 1 JavaScript length (UTF-16 units) 38 Code points 35 UTF-8 bytes 45
Measuring a piece of text
Paste or type
The counts update with every keystroke, so you can trim text until it fits.
Read the first row
Characters, Without spaces, Words and Lines describe the text as people read it.
Check the second row when a limit matters
JavaScript length, Code points and UTF-8 bytes are how software counts. Use whichever the system you are pasting into uses.
Which count a limit usually means
| Where the text goes | What is usually counted | Watch out for |
|---|---|---|
| A web form with a maximum length | UTF-16 units (JavaScript length) | Each emoji uses two or more |
| A database column or API field sized in bytes | UTF-8 bytes | Accents use two bytes, most emoji four |
| An SMS | Characters in the basic GSM alphabet | One emoji switches the whole message to a shorter limit |
| A social post or bio | Usually characters as seen | Some platforms count links or emoji differently |
Questions people ask
Do spaces count as characters?
Yes, in nearly every limit you will meet, including form fields, text messages and social posts. The Characters figure includes spaces and the Without spaces figure leaves them out, which is mostly useful for writing tasks that set a limit excluding spaces.
How many characters fit in one text message?
A single SMS carries 160 characters from the standard GSM alphabet. If the message contains anything outside it, such as an emoji or certain accented letters, the phone switches to Unicode encoding and the limit drops to 70. Longer messages are split into parts and joined on the recipient's phone.
Why does my emoji count as two characters elsewhere?
Many systems count UTF-16 units rather than visible characters, and most emoji need two units. Flags, skin tones and family emoji are built from several pieces and can count as four or more. The Characters figure here shows what a reader sees; the JavaScript length shows what most web forms enforce.
Where your data goes
Every count is calculated in your browser from the text in the box. Nothing you type is uploaded or recorded.
Checked against the tool on