CSS Clamp Calculator
Calculate a simple fluid pixel size with CSS clamp().
- Free
- No sign-up
- Runs in your browser
- Nothing uploaded
Scope: Uses linear interpolation between two pixel sizes and viewport widths.
Workbench
Inputs stay on this page. Press Ctrl or ⌘ + Enter to run.
How to use CSS Clamp Calculator
Fill in the fields:
- Minimum size (px): 0 to 10,000.
- Maximum size (px): 0 to 10,000.
- Minimum viewport (px): 1 to 100,000.
- Maximum viewport (px): 1 to 100,000.
Press “Calculate clamp”.
Copy the result, or download it as clamp.css.

