CSS Clamp Calculator
Calculate a responsive CSS clamp() value from two size and viewport widths, with px/rem output and a live value preview. Inputs stay local; rem conversion uses your chosen root size.
Inputs
0–2,000 px
1–10,000 px
0–2,000 px
1–10,000 px
Values are calculated locally and generated values round to at most 12 decimal places. Each number is limited to 8 characters; size values are 0–2,000 px, viewport widths 1–10,000 px, and the rem root size 1–1,000 px.
CSS clamp value
Preview only; this does not resize your browser.