Runs in your browser. Nothing you enter is uploaded or logged.

Next-token sampling simulator

Temperature, top-k and top-p, visualised.

One useful email every Monday

New free tools, AI and network threats that matter, and one quick challenge. No spam, unsubscribe in one click.

Questions people ask

What does temperature do in an LLM?

It flattens or sharpens the probability of the next token. Low temperature gives predictable text, high temperature gives varied text.

Helped you? Share it with your teamXLinkedInWhatsAppReddit
Link to this tool

Found it useful? Paste this into your blog, wiki or runbook.

<a href="https://toolbini.com/learn/sampling-simulator/">Next-token sampling simulator</a>

Reviewed by the editorial team · Last reviewed 2026-11 · Report an error