How to use CSS Clamp() Generator for Fluid Typography
- Enter the minimum and maximum size in px.
- Enter the viewport widths where scaling starts and stops.
- Copy the clamp() value.
Supported features and limitations
Output is in rem so it respects user font settings. clamp() is supported by all current browsers. The result scales linearly; test at your breakpoints and check that very large zoom levels still meet accessibility needs.
Privacy
Everything you type is processed locally in your browser and is not sent to our servers. No account is needed and there is no watermark.
Frequently asked questions
What does clamp() do?
It picks a preferred value but never goes below the minimum or above the maximum.
Can I use it for padding and margins?
Yes, any length property accepts clamp().
Related tools
- PX to REM Converter - Convert pixels to rem (and rem to px) with a custom root font size and a quick reference table of common sizes.
- Box Shadow Generator - Design a CSS box-shadow with offsets, blur, spread, colour, opacity and inset, and preview it live.
- CSS Formatter - Beautify minified or messy CSS with consistent indentation, one declaration per line.
- JSON Formatter & Validator - Format, minify and validate JSON with clear errors.
- URL Encoder / Decoder - Encode or decode URLs and query strings.
- Color Converter - Convert between HEX, RGB and HSL colours.