Fluid Typography Clamp
Enter your min/max font sizes and viewport widths to instantly generate a CSS clamp() string for fluid, responsive typography.
Use the Fluid Typography Clamp
Typography Parameters
Generated CSS
font-size: clamp(1rem, 0.8333rem + 0.8333vw, 1.5rem);
Value only:
clamp(1rem, 0.8333rem + 0.8333vw, 1.5rem)
Formula Breakdown
Min: 1rem (at ≤ 320px viewport)
Max: 1.5rem (at ≥ 1280px viewport)
Slope: 0.8333vw
Intercept: 0.8333rem
Live Scale Preview
| Viewport | Font Size | Preview |
|---|
800px
Computed size at
800px
:
20px
The quick brown fox jumps over the lazy dog.
Copied!
Summary
The Fluid Typography Clamp Generator computes the correct CSS clamp() expression that scales a font size linearly between a minimum and maximum value as the viewport grows from a small breakpoint to a large one. All arithmetic is done in your browser — no server calls, no signup. The output is a single copy-pasteable CSS property value compatible with all modern browsers.
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
Last updated: 2026-05-29 · Reviewed by Nham Vu