01
Set the size range
Enter the smallest and largest pixel values you want CSS to use.
Create and copy a pixel-based CSS clamp() expression for one fluid responsive value.
Use this for a fluid value such as font size or spacing. Below the minimum viewport, CSS keeps the minimum size; above the maximum viewport, it keeps the maximum size.
Generated value
clamp(16px, calc(11.4286px + 1.4286vw), 32px)Data handling
Advertising and analytics are separate site services. We do not send selected tool input to them. Read the Privacy Policy for details.
How it works
01
Enter the smallest and largest pixel values you want CSS to use.
02
Choose the two viewport widths where the value begins and finishes scaling.
03
Copy the calculated clamp() expression into a stylesheet or component.
Clear limit
This tool creates one pixel-based clamp() expression. It does not select a type scale, assess readability, manage design tokens, create container-query formulas, or test browser support for your project.
The output keeps the stated minimum and maximum pixel values.
The middle expression is calculated from both viewport widths.
Copy one complete clamp() value ready for review.
Settings and generated CSS remain in the current browser tab.
Keep working
Create and copy an explicit CSS border-radius value from four pixel corner settings.
Open tool →Create and copy one explicit CSS box-shadow value from pixel settings and an opaque HEX color.
Open tool →Create and copy a two-color linear CSS gradient from explicit sRGB colors and a degree angle.
Open tool →Convert one opaque sRGB color between normalized HEX, RGB, and HSL values locally.
Open tool →