How to use
Enter the minimum and maximum sizes, then the viewport widths where each boundary should apply. Choose px or rem, select precision, and calculate.
Worked example
With 16 px at 320 px and 24 px at 1280 px, the result reaches 20 px at 800 px and stays capped outside the interval.
Calculation method
The tool solves a linear slope and intercept, converts the slope to vw, and wraps the preferred value with clamp(min, preferred, max).
Limits
Inputs must be finite and positive. The upper viewport must exceed the lower viewport, and the maximum size cannot be smaller than the minimum.
Frequently asked questions
Why use clamp()?
It keeps a fluid value between explicit minimum and maximum limits without media-query steps.
Does this modify my project?
No. It only creates text that you can review and copy.
Related uses
Use the generated value for type, spacing, widths, gaps, or a custom property after checking it in your layout.
Privacy
All values and generated CSS remain in this browser. Nothing is uploaded. Privacy