CSS Clamp Generator
Set a minimum, preferred (fluid), and maximum value to calculate
responsive font sizes, spacing, and widths.
Generate CSS that scales smoothly with the viewport — no
complicated math, no media queries.
📏 Viewport Range
📐 Size Range
✨ Live Preview
0123456789 !@#$%
📖 How to use
- Viewport Range: set the range of screen widths where the value should scale (mobile → desktop).
- Size Range: enter the element's size at the smallest and largest viewport.
-
Generated Code: a
clamp()rule that scales smoothly without media queries is generated as you type. -
Copy the code and apply it to
font-size,padding, and more!