How to use the Fluid Typography Calculator
- Enter the smallest and largest screen width the size should scale between, for example 360 px and 1280 px.
- Enter the font size you want at each end.
- Copy the
clamp()value. Drag the viewport slider to see the size at any screen width. - For a whole system, pick two ratios and copy the type scale as CSS variables.
Tips
- Output in
remso the text still grows when visitors change their browser font size. - Body text rarely needs to grow much; headings benefit most from fluid sizes.
- A larger ratio on big screens and a smaller one on phones keeps headings dramatic on desktop and readable on mobile.
Converting between units? The PX to REM converter handles lists of values.
Everything runs in your browser: nothing you type or paste is sent to a server.