tokenbricks

Paste text, pick a tokenizer, and it's BPE-encoded right there in your browser — the exact byte-pair encoding OpenAI's models use, via gpt-tokenizer. Below it: the same text redrawn as a wall of equal-width bricks, one per token, so you can see the text the way the model actually experiences it — by token count, not character count. A short word can be one cheap token; a whole rare word can also be one. Inspired by tiktokenizer, prompted by astrra.space's idea for qustrolabe.bsky.social.