Font Sizes for Websites: The Complete 2026 px Guide for Every Element
10 min read

Font Sizes for Websites: The Complete 2026 px Guide for Every Element

NewForm·October 11, 2026

For most websites: body text 16px minimum (18px for long-form), H1 32 to 48px, H2 24 to 28px, H3 20 to 22px, buttons 15 to 16px, captions 14px. The exact typography sizes for websites, line heights, mobile numbers and a copy-paste CSS scale are below.

Typography is the one design decision that every visitor notices before they read a single word. If your font sizes are wrong, the content feels cramped, the hierarchy is unclear, and the page looks amateur. If they are right, everything reads effortlessly. This guide breaks down the exact typography sizes that work for websites in 2026, based on the carousel by @itsdesignare.

Post by @itsdesignare.

Typography sizes for websites - cover slide Typography size guide for websites. Image: @itsdesignare via Instagram.

TL;DR: the exact sizes

Short on time? Here is the whole guide in one table. Details and exceptions below.

ElementDesktopMobileWeight
Body text16px minimum, 18px for long-form16px minimumRegular
H132px to 48px (40px sweet spot)28px to 32pxBold
H224px to 28px (26px common)22px to 24pxSemibold
H320px to 22px18px to 20pxMedium
H4 to H616px to 18px (differentiate by weight)Same as bodySemibold or bold

The body text baseline: 16px minimum

Body text is the foundation. Get this wrong and nothing else matters. The minimum readable size for body text on the web is 16px. That is not a suggestion, it is the default that every browser ships with, and it is the size that assistive technologies expect.

Body text size recommendations for web Body text: 16px minimum, 18px for long-form reading. Image: @itsdesignare.

For text-heavy pages like blog posts or articles, bump it to 18px. The extra 2 pixels reduce eye strain significantly on longer reads. If your design calls for smaller text in a specific context (like a caption or a data table), never go below 14px, and always pair it with increased line height.

H1: The page title

Your H1 is the first thing a visitor scans. It needs to be large enough to establish the page's purpose at a glance. The recommended range is 32px to 48px for desktop, with 40px being the sweet spot for most layouts.

H1 heading size guide for websites H1: 32-48px, bold weight. Image: @itsdesignare.

Keep H1 at a bold weight. A semibold or regular H1 looks weak and fails to anchor the page. Use one H1 per page for both design and SEO reasons.

H2: Section headers

H2 headers break the page into scannable sections. They should be clearly larger than your body text but noticeably smaller than your H1. The range is 24px to 28px, with 26px being a common choice.

H2 section header sizing H2: 24-28px, semibold. Image: @itsdesignare.

Use semibold weight for H2s. They need to stand out from body text without competing with the H1. The jump from body (16px) to H2 (26px) should be obvious: roughly 1.6x the body size.

H3: Subsection headers

H3 headers sit within H2 sections and organize content at the detail level. They should be around 20px to 22px, just slightly larger than body text.

H3 subsection header sizing H3: 20-22px, medium or semibold. Image: @itsdesignare.

Medium weight works well for H3s. They need to be distinguishable from body text but should not shout. If your H3 is too close in size to your body text, it will not function as a header at all.

H4 and smaller: Inline headers

H4 through H6 are for inline headers and minor labels. Keep them at 16px to 18px, the same size as body text, but use weight (semibold or bold) to differentiate them. Size alone cannot create enough contrast at this level.

H4 and smaller heading sizes H4-H6: same size as body, differentiated by weight. Image: @itsdesignare.

Line height: The spacing between lines

Line height (also called leading) is just as important as font size. The general rule is 1.5 to 1.6 times the font size for body text, and 1.2 to 1.3 for headings.

Line height recommendations for web typography Line height: 1.5 for body, 1.2 for headings. Image: @itsdesignare.

For 16px body text, that means a line height of 24px (1.5 x 16). For a 40px H1, a line height of 48px (1.2 x 40). These are not arbitrary numbers: they are the values that produce comfortable reading across different screen sizes.

Letter spacing: Tight for large, loose for small

Letter spacing (tracking) follows a simple rule: large text gets tighter spacing, small text gets slightly looser spacing. For headings, use -0.02em to -0.03em. For body text, keep it at 0 (the font's default). For uppercase labels and small caps, add +0.05em to +0.1em.

Letter spacing guidance for different text sizes Letter spacing: tight for headlines, neutral for body, loose for caps. Image: @itsdesignare.

Mobile typography: Scale down intelligently

On mobile, your 40px H1 needs to come down, but not to 20px. The minimum readable size on mobile is still 16px for body text. Scale headings proportionally: H1 to 28-32px, H2 to 22-24px, H3 to 18-20px.

Mobile typography scaling guidelines Mobile sizes: scale down but never below 16px for body. Image: @itsdesignare.

Use CSS clamp() for responsive type that scales smoothly between mobile and desktop without media query jumps:

h1 { font-size: clamp(28px, 5vw, 40px); }
h2 { font-size: clamp(22px, 4vw, 26px); }
body { font-size: clamp(16px, 2vw, 18px); }

Copy-paste CSS type scale (clamp())

Here is a complete fluid type scale you can paste into a stylesheet today. It uses clamp() so every size scales smoothly between a 360px phone and a 1200px desktop with no media queries, and it matches the table above.

/* Fluid type scale: 16px body baseline, ~1.25 ratio, no media queries */
html { font-size: 100%; } /* 16px */

body { font-size: clamp(16px, 0.5vw + 14.2px, 18px); line-height: 1.6; }
h1 { font-size: clamp(32px, 2.5vw + 24px, 48px); line-height: 1.15; }
h2 { font-size: clamp(24px, 1.5vw + 18px, 28px); line-height: 1.3; }
h3 { font-size: clamp(20px, 0.8vw + 17px, 22px); line-height: 1.4; }
h4, h5, h6 { font-size: clamp(16px, 0.5vw + 14.2px, 18px); line-height: 1.4; }
small,.caption { font-size: clamp(13px, 0.3vw + 12.5px, 14px); line-height: 1.5; }
button,.btn { font-size: clamp(15px, 0.3vw + 13.9px, 16px); }

@media (max-width: 480px) {
h1 { font-size: 28px; } /* keep mobile headlines from wrapping badly */
}

If you prefer fixed sizes, the px values in the reference table below work on their own. But clamp() gets you the mobile numbers for free, and it removes a whole class of breakpoint bugs.

Pick a type scale ratio and stay on it

A type scale is the ratio between your sizes. Two ratios cover almost every website: 1.25x (16, 20, 25, 31, 39) for content-heavy sites, and 1.333x (16, 21, 28, 38, 51) for marketing pages that need more drama between steps. Pick one, round to whole pixels, and never invent a size mid-project. If a heading needs more presence, change the weight or the pairing first: our font pairing guide covers 15 combinations with exact sizes for each.

Accessibility minimums that are not negotiable

Three hard floors, regardless of what your design looks like: body text never below 16px, text never below 12px anywhere, and the whole page must stay readable at 200% zoom (which is what WCAG expects to survive). Small gray text fails twice, on size and contrast. If you need text smaller than 14px, it is a label, not content.

The complete size reference

Complete typography size reference table Full size reference: every element at a glance. Image: @itsdesignare.

ElementDesktopMobileWeightLine Height
H132-48px28-32pxBold1.2
H224-28px22-24pxSemibold1.3
H320-22px18-20pxMedium1.4
Body16-18px16pxRegular1.5-1.6
Small/Caption14px14pxRegular1.5
Button15-16px16pxMedium/Semibold1.2
Label (uppercase)12-14px12-14pxMedium1.4

Three rules that override everything

  1. Consistency beats creativity. Pick a type scale and stick to it across every page. A consistent 1.25x or 1.5x ratio between heading levels creates a rhythm that users feel even if they cannot articulate it.
  2. Test on real devices. Sizes that look perfect in Figma at 100% zoom can look different on a 13-inch laptop screen or a budget Android phone. Always check on actual hardware.
  3. Readability is not optional. If a user has to pinch-zoom to read your body text, the size is wrong. No design justification overrides this.

Test your scale in a real layout

Numbers on a chart mean nothing until you see them on a phone. Paste your heading and body sizes into a presentation frame in NewForm Mockup Studio and check the hierarchy before you ship.


Original carousel by @itsdesignare on Instagram.

Want to build a website with typography this clean without writing code? Try Base44 and start from a design prompt.

FAQ

What are the best typography sizes for websites?

Body text at 16px minimum (18px for long-form), H1 at 32 to 48px, H2 at 24 to 28px, H3 at 20 to 22px, and H4 to H6 at 16 to 18px differentiated by weight. Line height 1.5 to 1.6 for body and 1.2 to 1.3 for headings.

What font size should I use for my website?

Start at 16px for body text because that is the browser default and the size users expect. If the site is article-heavy, use 18px. Every other size should come from one scale ratio above that baseline, not from guessing per element.

What size should H1 be in px?

Between 32px and 48px on desktop, with 40px as the sweet spot, and 28px to 32px on mobile. Below 32px an H1 stops reading as the page title, and above 48px it starts fighting the content on mid-size screens.

What size should H2 be in px?

Between 24px and 28px on desktop and 22px to 24px on mobile, in a semibold weight. The test is simple: scan the page with body text blurred out. If the H2s do not pop, they are too close to your body size.

What is the standard body text size for a website?

16px. It is the default in every browser, it is what accessibility guidance treats as the readable minimum, and there is no good reason to go below it. Long-form reading content earns 18px.

What heading sizes work best on the web?

A clean desktop ladder is 40px H1, 26px H2, 21px H3 and 17px H4, each with the line heights above, dropping to roughly 30, 23, 19 and 17 on mobile. What matters more than the exact numbers is a consistent ratio between adjacent levels.

What font size should mobile websites use?

Keep body text at 16px on mobile, the same as desktop, and only scale the headings down: H1 to 28 or 32px, H2 to 22 or 24px, H3 to 18 or 20px. Shrinking body text below 16px is the single most common mobile readability mistake.

More in the Fonts Similar To series

Every guide uses our own rendered specimens and the same structure, so you can compare fonts side by side:

Related on NewForm

Pages from The 8-Prompt Product field guide

FREE FIELD GUIDE

The 8-Prompt Product

Answer 24 questions, run 8 prompts, and walk away this afternoon with a working, beautiful MVP you would be proud to show.

Instant download plus a copy in your inbox. Unsubscribe anytime.

See what's inside

Keep reading

Your Privacy, Your Choice

Control how we use your data

We use essential cookies to run NEWFORM and optional ones to improve analytics, personalization, and marketing. Choose what's okay with you.

Privacy Policy ·