Free tool
Type scale generator
Choose a base text size and a ratio. You get a matching set of sizes for small text, body text and headings, with a live preview and CSS to copy.
- H1 · 61px · 3.815remDesign that feels effortless
- H2 · 48.8px · 3.052remDesign that feels effortless
- H3 · 39.1px · 2.441remDesign that feels effortless
- H4 · 31.3px · 1.953remDesign that feels effortless
- H5 · 25px · 1.563remDesign that feels effortless
- H6 · 20px · 1.25remDesign that feels effortless
- Body · 16px · 1remDesign that feels effortless
- Small · 12.8px · 0.8remDesign that feels effortless
CSS variables
:root {
--text-small: 0.8rem; /* 12.8px */
--text-body: 1rem; /* 16px */
--text-h6: 1.25rem; /* 20px */
--text-h5: 1.563rem; /* 25px */
--text-h4: 1.953rem; /* 31.3px */
--text-h3: 2.441rem; /* 39.1px */
--text-h2: 3.052rem; /* 48.8px */
--text-h1: 3.815rem; /* 61px */
}What a type scale is
A type scale is a short list of font sizes that are related to each other by one ratio. Each size is the previous size multiplied by that ratio. Because the sizes share a relationship, headings and body text look as if they belong together.
Without a scale, sizes get chosen one at a time and a page ends up with ten slightly different sizes. With a scale, a whole product can use six or seven.
Choosing a base size and ratio
For body text on a website, 16 pixels is the usual minimum and 17 or 18 pixels is more comfortable for long reading. In apps, 14 to 16 is common for body text.
A small ratio such as 1.125 or 1.2 keeps sizes close together, which suits apps, dashboards and dense screens. A larger ratio such as 1.333 or 1.5 gives dramatic headings, which suits marketing websites and landing pages.
Questions about this tool
What font size should body text be on a website?
Use at least 16 pixels. For articles and long pages, 17 or 18 pixels with a line height of about 1.5 to 1.7 is easier to read, especially on phones.
How many font sizes should a website use?
Six or seven is enough for most websites: one small size for captions, one body size, and four or five heading sizes. More than that usually means sizes were chosen without a system.
What is the difference between px and rem?
A pixel value is fixed. A rem value is a multiple of the base font size of the page, so text set in rem follows the reader's own browser text size setting. Rem is the better choice for text on websites.
Read more
More free tools
Need this done properly for your product?
Tithi designs apps, websites and brand graphics with these details handled for you. I reply to every enquiry within 24 hours.