Skip to content
2xKit

CSS Clamp() Generator

Generate a fluid CSS clamp() value for responsive typography and spacing.

Runs in your browser

About this tool

CSS clamp() lets font size or spacing scale fluidly between a minimum and maximum based on viewport width, but calculating the correct preferred value (the middle argument that controls the scaling rate) involves real math most people don't want to do by hand. This tool generates a fluid CSS clamp() value for responsive typography and spacing, handling that scaling calculation for you so text and spacing scale smoothly across screen sizes.

Frequently asked questions