What UTF-8 Byte Counter does
Count UTF-16 code units, Unicode scalar values, and UTF-8 bytes for text while also showing the exact UTF-8 byte sequence.
Input and output contract
Text input is bounded to 262,144 characters and is encoded with the browser TextEncoder. Code-unit, scalar-value, byte counts, and UTF-8 hex.
Safe workflow
Paste text and process it before writing into a fixed-size save-file string field. SaveEditor processes this operation locally in the browser and does not infer a game format from the input.
Important limitations
The counts can differ because JavaScript strings use UTF-16 internally and some Unicode characters require multiple UTF-8 bytes. If the game uses another encoding, this byte count does not represent that other encoding.