Loading tool…
Count the UTF-8 byte size of any string, along with its character count and UTF-16 code units.
Loading tool…
Privacy: this tool runs entirely in your browser. Your input is never sent to, received by, or stored on any server — there are no uploads and no tracking of what you enter.
A character isn't always one byte. In UTF-8, ASCII is 1 byte but accented letters take 2 and emoji take 4, so byte size differs from character count.
Database column limits, SMS segments, API payload sizes and tweet limits are often measured in bytes or code units, not characters.
Character count, UTF-8 byte count and UTF-16 code-unit count for the same text.