Font Sizes for Websites: The Complete 2026 px Guide for Every Element
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 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.
| Element | Desktop | Mobile | Weight |
|---|---|---|---|
| Body text | 16px minimum, 18px for long-form | 16px minimum | Regular |
| H1 | 32px to 48px (40px sweet spot) | 28px to 32px | Bold |
| H2 | 24px to 28px (26px common) | 22px to 24px | Semibold |
| H3 | 20px to 22px | 18px to 20px | Medium |
| H4 to H6 | 16px to 18px (differentiate by weight) | Same as body | Semibold 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: 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: 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: 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: 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-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: 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: 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 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
Full size reference: every element at a glance. Image: @itsdesignare.
| Element | Desktop | Mobile | Weight | Line Height |
|---|---|---|---|---|
| H1 | 32-48px | 28-32px | Bold | 1.2 |
| H2 | 24-28px | 22-24px | Semibold | 1.3 |
| H3 | 20-22px | 18-20px | Medium | 1.4 |
| Body | 16-18px | 16px | Regular | 1.5-1.6 |
| Small/Caption | 14px | 14px | Regular | 1.5 |
| Button | 15-16px | 16px | Medium/Semibold | 1.2 |
| Label (uppercase) | 12-14px | 12-14px | Medium | 1.4 |
Three rules that override everything
- 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.
- 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.
- 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:
- Fonts similar to Inter: 12 alternatives for UI type (hub)
- Fonts similar to Helvetica
- Fonts similar to SF Pro
- Fonts similar to Futura
- Fonts similar to Proxima Nova
- Fonts similar to Times New Roman
- Fonts similar to Garamond
- Fonts similar to Helvetica Neue
- Inter vs Geist: which UI font to ship
- Font pairing guide: which fonts go together
- Best fonts for dashboards (tabular figures, x-height, CSS)
- How to choose UI fonts by mood
Related on NewForm

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.
See what's insideKeep reading
Find Your Stack
Discover the perfect design tools for your workflow.
Take the 60-second quizNewForm Studio
Turn your designs into professional mockups instantly.
Open StudioMore from NewForm

15 UX Portfolio Examples That Get Designers Hired (And What Each One Does Right)
Fifteen real UX portfolio examples from working designers, the one lesson each teaches, a structure checklist, and how to build yours in a weekend.
11 min read · Nov 1, 2026

How to Choose UI Fonts by Mood: A Practical Pairing Method
Turn mood words like elegant, bold, and editorial into a practical type pairing, then test it on real interface content.
4 min read · Oct 21, 2026


