Practical · developer tool · WASM
Every product eventually meets input its tokenizer never trained on: a new emoji, a right-to-left
script, pasted code, a name in an unusual alphabet, or plain keyboard-mash. A sub-word vocabulary
fragments or emits [UNK]. ByT5 can't — its "vocabulary" is the 256 byte values, so
any byte sequence is representable. Paste real user text and watch it encode, always.
Load a sample, or paste your own — the encoder below is pure UTF-8, no model required:
char → UTF-8 bytes → token ids (multi-byte chars show all their bytes):
Robust encoding is only useful if the model consumes it. Drop a [BLANK] into your text and ByT5 fills it — reading the exact bytes above.