Compose a system/user/assistant conversation and see the exact prompt string each model family receives - special tokens and all
Special tokens are highlighted. The exact string above is what the model receives before generation. Pairs with the Tokenizer app for debugging local LLM prompt formatting.
As-is, no warranty. These apps are free under their listed license and run entirely in your browser. Use at your own risk — don't blame me if your PC catches fire, your dog runs away, or the math turns out wrong. Verify anything that actually matters. None of this is professional financial, medical, legal, or engineering advice.
Every instruction-tuned model expects its conversation wrapped in a specific format - a set of special tokens that mark where each turn starts and ends, who is speaking, and where the model should begin generating. Get that format wrong and the model still produces text, but quality quietly degrades: it ignores the system prompt, runs past where it should stop, or treats your instructions as content to echo.
This tool makes the format visible. Compose a conversation with system, user, and assistant turns, pick a model family, and see the exact string that family’s tokenizer would receive - special tokens and all.
<|im_start|>role / <|im_end|> markers.<|begin_of_text|>, header blocks, <|eot_id|> turn terminators.[INST] ... [/INST] instruction blocks. No dedicated system role, so the system prompt is folded into the first user turn (exactly as the official template does it).<start_of_turn> / <end_of_turn> with the assistant role renamed to model. No system role - system content is folded into the first user turn.<|system|> / <|user|> / <|assistant|> markers with <|end|> terminators.This renders the chat template - the turn-structure wrapping. It does not run the BPE tokenizer, so the per-token breakdown lives in the companion Tokenizer. For exact behavior on a specific checkpoint, the model’s own tokenizer_config.json (its chat_template Jinja string) is always the final authority - vendors occasionally tweak these between releases. The templates here match the documented format for each family as of the last-verified date.
For informational purposes only. Not financial, medical, or legal advice. You are solely responsible for how you use these tools.