Fluid Typography Builder
Set your text sizes for small and large screens, then drag the slider to see all eight sizes change. Copy the ready CSS variables into your website.
Screen widths (px)
Body text size (px)
Size step between levels
Test the result with browser zoom and your real content. A formula alone does not guarantee accessibility.
Your CSS
Using Fluid Typography Builder
Set your text sizes for small and large screens, drag to preview all eight sizes, and copy the CSS.
- Enter your smallest and largest screen widths and the body text size for each.
- Set the size step between levels, then drag the slider to see every size update.
- Copy the CSS or download it, then use the variables in your site.
Example
With body text from 16 to 20 px across 360 to 1440 px wide screens, a 1024 px screen gets body text of about 18.5 px. Use it with font-size: var(--font-step-2);.
Questions & answers
What makes the font scale fluid?
Each step uses clamp with a rem minimum, a rem-plus-vw middle term and a rem maximum. Sizes interpolate between the two viewport targets.
Can I use it for headings and body text?
Yes. Apply the exported font-step variables to your selectors. Negative steps work for small labels; larger steps suit headings.
What does the root size mean?
It is the pixel value used to convert your targets to rem. Changing the actual root font affects the rem terms.
Does the preview resize my page?
No. The slider calculates sizes for that width and shows them inside the panel. Long text there is cut off with dots.
Does clamp guarantee accessibility?
No. Relative units help adaptation, but you still need to test text zoom, line wrapping and layout at large text sizes.
Why reject some ratio combinations?
Every maximum font size must be at least its minimum. Very different ratios can reverse the smaller scale steps. Adjust base sizes or ratios until the scale is consistent.
Is my input uploaded for processing?
No. Everything runs in your browser and nothing you type is sent to a server for processing.
Help improve this tool
Report a problem or suggest an improvement
Describe the issue without pasting private tool input. Feedback goes to our admin inbox.
