Add the requested inputs
Use the labelled fields in the workspace above. If example values are provided, try them first or replace them with your own.
Data & file tools · Free online tool
Generate a fluid CSS clamp() value between chosen sizes and viewport widths. Create a responsive font-size or spacing rule that scales linearly between a defined minimum and maximum.
Runs locally in your browser
For rem and em, the calculation uses a 16px reference size. Check the result against your project’s actual root and inherited font sizes.
Use it with confidence
Use the labelled fields in the workspace above. If example values are provided, try them first or replace them with your own.
Use the main action when needed. The calculator derives a viewport-width slope and intercept, then places that preferred value between the entered minimum and maximum.
Scale text from 1rem at a 320px viewport to 2rem at 1,280px and copy the resulting clamp expression.
rem and em calculations use a 16px reference in this tool; test the result with the actual root size, container, zoom and accessibility settings.
Helpful answers
Yes. Guests receive 3 runs per rolling 24 hours, verified free accounts receive 10, and Premium subscribers receive unlimited normal use.
No. This tool runs in your browser and UtilHub does not receive or store the values you enter. Your browser or device may still retain normal local history or form data.
The calculator derives a viewport-width slope and intercept, then places that preferred value between the entered minimum and maximum.
rem and em calculations use a 16px reference in this tool; test the result with the actual root size, container, zoom and accessibility settings.