Free CSS Tool

Generate CSS clamp() ValuesWithout the Math

Stop calculating fluid responsive values by hand. Enter your min/max sizes and viewport widths — get a perfect clamp() formula ready to paste into your CSS.

📐

Instant Formula

Enter min size, max size, and breakpoints. Get a valid clamp() value in real time with no manual slope calculations needed.

📊

Live Preview

See exactly how your value scales across viewport widths with an interactive chart before you copy.

📋

Copy in One Click

Copy the full clamp() value ready to use in font-size, padding, gap, margin, or any CSS property.

Quick presets

Unit:
CSS Output100% browser compatible
clamp(1rem, 0.8333vw + 0.8333rem, 1.5rem)

Min (clamp floor)

1rem

Preferred (fluid)

0.8333vw + 0.8333rem

Max (clamp ceiling)

1.5rem

Value at viewport widths

320px
16.00pxmin
480px
17.33px
640px
18.67px
768px
19.73px
1024px
21.87px
1280px
24.00pxmax
1440px
24.00pxmax

Paste into any CSS property: font-size, padding, gap, margin, and more.

Frequently Asked Questions

Everything you need to know about CSS Clamp Calculator.