Free online tools · Browser-first utilities · No account required
Home / Design Tools / CSS Clamp Generator
Design Tools

CSS Clamp Generator

Generate a CSS clamp() declaration.

Using CSS Clamp Generator

On this page
  1. Using CSS Clamp Generator
  2. Input reference
  3. Continue your task

Paste the CSS or markup into a small test page with real content. The surrounding stylesheet, box sizing and inherited properties affect the rendered result. Check the longest label and a narrow viewport before using the snippet in production.

Example input

Input
16
Additional value (if needed)
2

Example result

font-size: clamp(16px, 2vw, 32px);

Read next · How to Choose the Right Online Tool

Input reference

Input
Enter multiline text. Field hint — Enter or paste your input here….
Additional value (if needed)
Enter text. Field hint — Optional second value.
Report a correction

← Browse all 311 tools