Continguts
BBonJanDesignB

Inici › Articles

Typography for Web Design: A Practical Sizing Guide

Per Jordi Bonet · Publicat · 3 minuts de lectura

Wireframe sketches pinned on a board for a design project
Wireframe sketches pinned on a board for a design project · Foto: J_Hennemann / Pixabay

Most readability problems on websites are not caused by the wrong font. They come from the wrong size, spacing and measure around it. You can pick a perfectly good typeface and still end up with text that feels cramped on desktop and unreadable on a phone, simply because nobody set rules for how the type behaves across screens.

This guide covers the numbers that matter: base font sizes, line heights, line lengths, heading scales and how to test them. The ranges below are practical starting points used by working designers, not absolute laws. Treat them as a baseline, adjust for your content and audience, and check the result on real devices before you ship.

Start with a base size that suits reading, not fitting

A base body size between 16px and 20px covers most projects. Sixteen pixels is the practical floor for long-form text; below that, mobile browsers often zoom or readers lean in. For editorial sites, documentation and anything people read for more than a minute, 18px or 19px is a safer default.

The base size also drives everything else. Once you fix it, your spacing scale, heading sizes and component padding can be built as multiples of it. Pick the base early in the project, document it, and avoid the common trap of shrinking text to make a layout fit. Shrinking type to solve a layout problem almost always reduces legibility more than it improves the design.

  • 16px: minimum for comfortable long-form reading
  • 18-20px: recommended default for editorial and documentation
  • Never go below 14px for secondary text, and only for short labels
  • Set the base on the root element so the whole system scales from one value

Line height is where most sites lose readability

For body text, a line height between 1.5 and 1.7 times the font size works well. Tight leading makes paragraphs feel like a wall; loose leading breaks the connection between lines and slows reading. Headings need less, typically 1.1 to 1.3, because large type already has visual space built into it.

Line height should also grow slightly on narrower screens, where lines break more often. A body style with 1.5 on desktop and 1.6 on mobile is a reasonable adjustment. If you use a font with a large x-height, you can usually sit at the lower end of the range; fonts with small x-heights often need a little more air to stay comfortable.

  • Body text: 1.5-1.7
  • Headings: 1.1-1.3
  • Captions and labels: 1.3-1.4
  • Increase line height slightly on small screens

Control the measure before changing anything else

Line length, or measure, has a bigger effect on reading comfort than most people expect. Aim for 45 to 75 characters per line, with 60 to 70 as the sweet spot for body copy. Wider than that and the eye loses its place on the return sweep; narrower and the rhythm breaks down with constant line changes.

On a 1440px desktop, a full-width paragraph will often run past 120 characters, which is why container widths and max-width values matter more than they look. A max-width of roughly 60 to 75 characters, set in relative units, keeps text comfortable without hard-coding pixel widths that break on other screens.

Build a heading scale that has contrast

A heading scale needs visible steps. If your h2 and h3 differ by two pixels, the hierarchy disappears. A ratio between 1.2 and 1.333 between levels gives clear contrast without absurd jumps. On a 18px base, that produces roughly 22px, 26px, 32px and 42px across four levels, which reads clearly on both desktop and mobile.

Keep the number of levels small. Most sites need three or four heading styles, not six. Extra levels usually mean the content structure is unclear, and readers end up scanning without understanding what matters. Map headings to the document outline first, then style them, rather than inventing styles and forcing content into them. For a broader review of page-level design before launch, see our checklist to review a website's design before publishing.

16Mobile UI17Corporate site19Editorial17Documentation22Hero text
Recommended base font size by context (px) (px)
Typical type ranges by use case
Use caseBase sizeLine heightMeasure (characters)
Long-form editorial18-20px1.6-1.760-70
Corporate website16-18px1.5-1.655-75
Documentation16-18px1.660-80
Mobile app UI16-17px1.4-1.535-45
Landing page hero20-24px1.3-1.440-55
Captions and labels13-14px1.3-1.430-45

Test with real content and real devices

Placeholder text hides problems. Real paragraphs have long words, numbers, punctuation and links, and those are what break layouts. Fill a template with a few hundred words of actual content from the project, then check the narrowest supported width, a mid-size tablet and a large desktop. Most type problems appear at the extremes, not in the middle.

Also test with browser zoom at 200%. Text should reflow, not overlap or clip. If your layout depends on fixed heights, zoom will expose it quickly. Checking these states takes fifteen minutes and prevents a whole category of complaints after launch. If the wider page structure is still unsettled, a user-centred design approach helps you decide what to test first.

Where typography meets performance and brand

Every extra font weight is a download. Two weights of one family, or a variable font, usually cover headings and body text. Loading four weights across two families adds weight and visual noise for little gain. Subset fonts to the characters you need and load them with a sensible fallback stack so text renders immediately.

Typography is also a brand decision, not only a readability one. The type you choose carries tone as much as colour does. If the visual identity is still in progress, it is worth understanding how long a professional logo takes to design, because type choices and logo work tend to converge and should be decided together rather than in isolation.

  • Fix a base size of 16-20px and build the whole type system from it.
  • Body line height of 1.5-1.7 and a measure of 45-75 characters solve most readability issues.
  • Keep heading scales to three or four levels with a ratio of 1.2-1.333.
  • Test with real content, the narrowest screen and 200% zoom before launch.
Jordi Bonet · Dissenyador gràfic i web
Amb més de deu anys d'experiència en estudis de disseny, s'especialitza en identitat visual i disseny de interfícies. Escriu sobre processos creatius, eines i tendències del sector. El seu enfocament combina estètica i funcionalitat per a projectes de mida petita i mitjana.

Articles relacionats

↑