Defining font sizes on your website

Table of contents
Thomas Gaillard

Passionate about design and expert in website creation in Lyon 🎨. I work with small businesses to transform their ideas into an online presence that looks like them and really works🚀.

Table of contents

Table of contents

Choosing the right text size for your website can quickly become a headache. Fortunately, there are simple methods for maintaining consistency and improving text legibility.

Here you'll find a quick, practical guide based on my experience and research.

Choosing the right font measurement unit :

To begin with, you'll need to choose a unit of measurement. There are several, but all have their own specific features.

Here are the most common units of measurement:

  • Pixel (px)
  • Percentage (%)
  • Emphemeral Unit (em)
  • Root Emphemeral Unit (rem)
  • Point (pt)
  • Viewport width (vw)

I won't go into the technical details of each of these units, but the preferred unit of measurement for web font sizes is the Root Emphemeral Unit (rem).

This unit adapts to users' preferences (in their browser settings), making it more accessible to a wider audience.

What font sizes should I use?

Now that you've chosen the right unit of measurement, you'll need to use the right sizes.

I used to choose font sizes by eye before I knew the recommended sizes... this is clearly not the right way to go about it.

Here are some commonly used sizes, which will guarantee good legibility:

  • Grand titre: 2.25 rem to 3 rem
  • Average titer: 1.75rem to 2.25rem
  • Small title: 1.25rem to 1.75rem
  • Paragraph: 0.8 and 1.2 rem

You now know the right unit and recommended sizes, but there's one thing that will make all the difference between you and the others.

Using a font scale :

That's what really made the difference for me and helped make my websites professional.

Font scaling consists of listing all the types of text you will be using on your website, then defining the precise parameters for each type of text (size, typeface, weight, decoration, line spacing, lettering, etc.).

Font scaling allows you to maintain real consistency throughout your site. It's an invaluable tool, easy to implement, yet often overlooked.

Here is an example of a font scale for a website:

ElementSize (rem)GreaseLine spacing (em)
H13.757001.1
H22.257001.25
H31.57001.2
H41.256001.2
H51.1256001.2
H61.1254001.2
Paragraph14001.5
Small text0.8744001.5
Button15001.5

You can use this "Type Scale Calculator" tool to compose your font scales.

My final tip for managing your font sizes

As you'd expect, you'll need to define your unit of measurement, then choose your font size, and finally do the same for each type of text that will appear on your website.

But the most important thing is to stick to it.

For a long time, I made the mistake of putting different sizes all over my sites... You soon find yourself in an unreadable space.

Correctly managing your font sizes will greatly enhance your users' experience and make them want to stay and read the content on your website.

Further information, useful links :

Get my best advice

Everything you need for a high-performance website, delivered straight to your inbox.