Character counter

See JavaScript string length, no-space count, and UTF-8 byte size.

Check limits for APIs, SMS, or databases: character count and UTF-8 byte length update together as you edit.

Text
Counts
Characters
0
Characters (no spaces)
0
UTF-8 bytes
0

Related tools

How it works

The character total matches JavaScript string length.

UTF-8 byte length is what you would get encoding the string as UTF-8.

Limits

Very large pastes may slow the page; use reasonable sizes.

Privacy

Local processing only.

Common questions

UTF-8 bytes vs characters?
ASCII letters are one byte each in UTF-8; many symbols use multiple bytes.
Emoji?
Some emoji use two UTF-16 code units in JS strings, so character count can differ from visual length.
Newlines?
Each line break counts as character(s) depending on how it was pasted.
Server upload?
No.