Give a minimum and maximum size in px and the viewport widths where each should apply. The tool solves the straight line between those two points and writes it as clamp(min, intercept + slope·vw, max), with the bounds and intercept in rem so the value still respects the user’s browser font size setting.

For example, 16px at 320px wide growing to 32px at 1280px wide gives clamp(1rem, 0.6667rem + 1.6667vw, 2rem).

The table shows the computed size at common viewport widths, and the preview line uses the generated value directly, so resizing the window shows the effect. It works for any length property, not just font-size; change the property name to get a ready-to-paste line for padding, gap or margins.