Character Counter
Compare text length with and without whitespace, line count, and UTF-8 byte size. These figures help distinguish a character-based form limit from a byte-based payload limit.
- Runs in your browser
- Nothing is uploaded
- No signup; device limits apply
Loading the tool. If it does not appear, reload this page.
How to use this tool
Paste the exact text that will be submitted, including line breaks and spaces. Values update as the text changes; pay particular attention to emoji and combining characters.
Results and examples
The character 가 has a JavaScript string length of 1 but occupies 3 UTF-8 bytes. Some emoji occupy multiple UTF-16 units, so the displayed length need not equal visible symbols.
Limitations
- The length fields use JavaScript UTF-16 code units.
- A service that counts grapheme clusters may enforce a different limit.
Fields
| Field | Guidance and constraints |
|---|---|
| Text | Check the unit and format displayed beside this field. |
Data handling
Processing stays in the current browser tab; the site does not upload tool input for the calculation itself.
Sources
Frequently asked questions
Why do Korean text length and byte size differ?
The character 가 has a JavaScript string length of 1 but occupies 3 UTF-8 bytes. Some emoji occupy multiple UTF-16 units, so the displayed length need not equal visible symbols.
Why can one emoji count as more than one?
The length fields use JavaScript UTF-16 code units. A service that counts grapheme clusters may enforce a different limit.