Font Size Converter
CSS offers multiple units for specifying font sizes, each with different behaviours and use cases. Absolute units like pixels (px) and points (pt) do not scale with user preferences. Relative units like em, rem, and percent scale based on parent or root font sizes, making them better for accessibility. Viewport units (vw) scale with the browser window width. This font size converter converts any value in any unit to all other units, using configurable base values. The default assumptions are: 1 rem = 16 px (browser default), 1 pt = 1.3333 px (CSS standard at 96 DPI), and viewport width = 1,440 px (common desktop). You can override all three settings to match your specific design context.
Advanced settings
Font size unit reference (base: 1rem = 16px)
| px | pt | rem | em (base 16px) | % |
|---|---|---|---|---|
| 10 px | 7.5 pt | 0.625 rem | 0.625 em | 62.5% |
| 12 px | 9 pt | 0.75 rem | 0.75 em | 75% |
| 14 px | 10.5 pt | 0.875 rem | 0.875 em | 87.5% |
| 16 px | 12 pt | 1 rem | 1 em | 100% |
| 18 px | 13.5 pt | 1.125 rem | 1.125 em | 112.5% |
| 20 px | 15 pt | 1.25 rem | 1.25 em | 125% |
| 24 px | 18 pt | 1.5 rem | 1.5 em | 150% |
| 32 px | 24 pt | 2 rem | 2 em | 200% |
Conversion formulas
1 pt = 96/72 px = 1.3333 px (CSS standard at 96 DPI)
1 rem = base px (default 16 px)
1 em = base px (relative to parent; treated as base here)
1% = base px / 100
1 vw = viewport width / 100
Font size units: frequently asked questions
What is the difference between px and rem in CSS?
A pixel (px) is an absolute unit that does not scale with user preferences. A rem (root em) is relative to the root element's font size, which is typically 16px in browsers unless the user has changed it. Using rem allows text to scale when users change their browser's default font size for accessibility. The conversion: 1 rem = 16px (default), so 1.5 rem = 24px.
What is the difference between em and rem?
Both em and rem are relative units. Em is relative to the font size of the parent element: if a parent has font-size: 20px, then 1em = 20px for child elements. Rem (root em) is always relative to the root element's font size (html element), regardless of nesting. Rem is generally preferred because em values can compound in nested elements, making them hard to predict.
How many pixels is 1pt?
In CSS, 1pt (point) equals 1/72 of an inch. At the standard screen resolution of 96 DPI (the CSS reference pixel), 1pt = 96/72 = 1.333... pixels. So 12pt = 16px and 9pt = 12px approximately. Points are most useful for print stylesheets. For screen layouts, pixels or rem are preferred.
What is vw in CSS?
vw (viewport width) is a relative unit equal to 1% of the browser viewport's width. 1vw = viewport width / 100. For example, on a 1200px wide viewport, 1vw = 12px and 5vw = 60px. Using vw for font sizes creates text that scales with the viewport width, useful for fluid typography. The CSS clamp() function is often used with vw to set minimum and maximum font sizes.
Should I use px or rem for font sizes?
Best practice for accessibility is to use rem for font sizes. This allows users who have set a larger default font size in their browser (a common accessibility need) to have that preference respected. Pixels ignore the user's browser font size setting. The W3C WCAG 2.2 success criterion 1.4.4 (Resize Text) requires that text can be resized up to 200% without loss of content or functionality.
Official sources
- W3C CSS Values and Units Level 4: CSS length units specification.
- W3C WCAG 2.2: Success Criterion 1.4.4 Resize Text.
Reviewed by the CalculatorHub team, edited by James Graham, 14 June 2026. See our methodology.