0

Fluid Font Size Clamp() Generator

Compute a real fluid CSS clamp() value from a min and max size across two viewport widths, with the slope and intersection shown step by step and a live resize preview.

Processing... 0%

Result

This page opens the calculator with a general-purpose fluid font-size setup already filled in: 16px at a 320px viewport up to 24px at a 1280px viewport. That is a comfortable body-to-slightly-larger range that scales smoothly from a typical phone screen to a typical desktop window, and it is the setup most people mean when they search for a fluid font-size clamp() in the first place.

The four numbers are open to change: raise the max size for a heading rather than body text, or narrow the viewport range if the design only needs to flex between a tablet and a desktop breakpoint. Whatever you enter, the slope and y-axis intersection are recomputed the same way and shown as explicit arithmetic, not hidden inside the final line.

Below the four inputs, a viewport-width slider drives a live preview so the scaling is visible immediately, and the copy-ready clamp() line is one click away. Switching the output unit between rem and px recalculates every number without touching the min and max size values themselves.