← All models · ByT5-small

Practical · developer tool · WASM

Nothing is ever out-of-vocabulary

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.

Paste anything a user might type

Load a sample, or paste your own — the encoder below is pure UTF-8, no model required:

Characters
–
UTF-8 bytes / tokens
–
Distinct scripts hit
–
Unknown tokens
0

char → UTF-8 bytes → token ids (multi-byte chars show all their bytes):

…and the model still runs on it

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.

Next: Wild — corrupt it and it still holds →