DevDockTools

CSS Clamp Calculator

Generate CSS clamp() values for fluid, responsive design. Input minimum and maximum values with viewport breakpoints to get a perfectly scaling clamp() function.

Size Range

Viewport Range

CSS Output
clamp(16rem, 26.6667vw + 10.6667rem, 32rem)

Value at different viewports

ViewportComputed (px)Computed (rem)Preview
320px256.00px16.000remAa
640px341.33px21.333remAa
768px375.47px23.467remAa
1024px443.73px27.733remAa
1280px512.00px32.000remAa
1440px512.00px32.000remAa

Frequently Asked Questions

What is CSS clamp() used for?

CSS clamp() creates fluid values that scale smoothly between a minimum and maximum based on the viewport width — perfect for responsive typography and spacing.

Related Tools