CSS clamp generator
Turn a size at two viewport widths into a fluid clamp() value, with the arithmetic shown.
Runs in this browser. Nothing is uploaded.
Loading css clamp generator…
Fits a straight line between your minimum and maximum size at the two viewport widths, then writes it as clamp(min, calc(...), max). A viewport slider shows the size at any width between 320 and 2560 pixels.
The line is linear between the two widths and flat outside them, which is what clamp() does. On desktop 100vw can be wider than the visible content area when a scrollbar is present, and page zoom changes the viewport, so the rendered size can land a fraction off.
Are my files uploaded to a server when using CSS clamp generator?
No. CSS clamp generator runs directly inside this browser tab. Everything you open stays in your device memory until you close or leave the page.
Does CSS clamp generator work offline?
Yes. Once loaded, the app cache keeps assets available locally so you can run CSS clamp generator without an active internet connection.