Fluid Typography Clamp
Enter your min/max font sizes and viewport widths to instantly generate a CSS clamp() string for fluid, responsive typography.
Typography Parameters
Generated CSS
font-size: clamp(1rem, 0.5rem + 2.5vw, 1.5rem);
Value only:
clamp(1rem, 0.5rem + 2.5vw, 1.5rem)
Formula Breakdown
Min: 1rem (at ≤ 320px viewport)
Max: 1.5rem (at ≥ 1280px viewport)
Slope: 2.5vw
Intercept: 0.5rem
Live Scale Preview
| Viewport | Font Size | Preview |
|---|
800px
Computed size at
800px
:
20px
The quick brown fox jumps over the lazy dog.
Copied!
Summary
Enter your min/max font sizes and viewport widths to instantly generate a CSS clamp() string for fluid, responsive typography.
How it works
- Enter the minimum font size (the size at the smallest viewport).
- Enter the maximum font size (the size at the largest viewport).
- Set the minimum viewport width (the breakpoint where fluid scaling begins).
- Set the maximum viewport width (the breakpoint where scaling stops).
- Optionally adjust the base font size (default 16px, used to convert px to rem).
- The clamp() output updates instantly — click "Copy CSS" to use it.
Use cases
- Scale headings smoothly between mobile and desktop without media queries.
- Implement a fluid type scale following the Utopia or similar methodology.
- Avoid jarring font-size jumps at specific breakpoints.
- Generate consistent rem-based clamp values for a design system.
- Quickly prototype fluid body copy or display text for any viewport range.
Frequently Asked Questions
Related tools
Last updated: 2026-05-29 ·
Reviewed by Nham Vu