Responsive Font Size Calculator

Tell the calculator how big your text should be on a phone and on a desktop, and it writes one CSS font-size that grows smoothly in between. Drag the screen width to watch the headline resize, check the size at common screen widths, and copy the clamp() value. No media queries needed.

px
px
px
px
px

16 unless your site changes html { font-size }

Output unit

Headline that fits every screen

Screen width3607681024128014401920
Size (px)3242.649.3565656
Code
font-size: clamp(2rem, 1.413rem + 2.6087vw, 3.5rem);

Calculating runs in your browser. What you type never leaves this device.

Features

  • Font size on phones and on desktops, in px

  • Choose where growing starts and stops (default 360 to 1280 px)

  • Live headline preview at any screen width

  • Size table at 360, 768, 1024, 1280, 1440 and 1920 px

  • rem-based output that respects browser zoom and font settings

Typical uses

Hero headlines

A 56 px desktop headline that drops to 32 px on phones without breaking onto five lines.

Blog body text

17 px on phones growing to 19 px on wide screens for comfortable reading.

Prices and numbers

Big pricing figures that stay prominent but never overflow their cards.

Choosing responsive font sizes

Sensible ranges

  • Body text: 16 to 18 px on phones, 17 to 20 px on desktops.
  • H1 on landing pages: 32 to 40 px on phones, 48 to 72 px on desktops.
  • H2: about 24 to 28 px on phones, 32 to 40 px on desktops.

Reading the result

The value looks like clamp(2rem, 1.413rem + 2.6087vw, 3.5rem). The first and last parts are your phone and desktop sizes in rem; the middle part grows with the screen. Paste it as the font-size of the element.

Line height and length

As text grows, tighten the line height a little for headings (1.1 to 1.2) and keep body text lines to about 60 to 75 characters with max-width: 65ch.

Related tools

Responsive Font Size Calculator - FAQ