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

  1. Enter the minimum font size (the size at the smallest viewport).
  2. Enter the maximum font size (the size at the largest viewport).
  3. Set the minimum viewport width (the breakpoint where fluid scaling begins).
  4. Set the maximum viewport width (the breakpoint where scaling stops).
  5. Optionally adjust the base font size (default 16px, used to convert px to rem).
  6. The clamp() output updates instantly — click "Copy CSS" to use it.

Use cases

Frequently Asked Questions

Related tools

Last updated: 2026-05-29 · Reviewed by Nham Vu