What is Font Size & Unit Converter?
Choose the input unit to convert between CSS px, pt, em, rem and percentages. CSS uses 96px per inch and 72pt per inch; these are CSS units, not a measurement of physical screen pixels.
For font-size conversions, em and percentages use the parent font size; rem uses the root element font size. Set them separately when your document uses different values. The Chinese publishing table starts from point sizes.
Common conversions, with the assumptions visible
Choose “1.5em → px” to set both base sizes to 16px. The result is 24px because 1.5 × 16 = 24. Change the input unit to convert in the opposite direction; the converter accepts px, pt, em, rem and percentages as inputs.
CSS defines an inch as 96px or 72pt, so px = pt × 4/3 and pt = px × 3/4. These are CSS reference units, not a measurement of physical display pixels, monitor DPI or printer resolution.
| Input | px | pt | em / rem |
|---|---|---|---|
| 1.5em | 24 | 18 | 1.5 |
| 64em | 1024 | 768 | 64 |
| 18px | 18 | 13.5 | 1.125 |
| 12pt | 16 | 12 | 1 |
| 150% | 24 | 18 | 1.5 |
When 1.5em is not 1.5rem
Choose “Different em / rem bases”. With a 20px parent and a 16px root, 1.5em resolves to 30px, or 1.875rem. A value of 1.5rem still resolves to 24px. The two relative units agree only when their bases agree.
For font-size, em and % use the parent’s computed font size; rem uses the root element’s font size. Inspect those values in your browser’s developer tools instead of assuming every page uses 16px. em used on other properties, such as padding, usually refers to the element’s own font size; this converter is specifically for font-size.
html { font-size: 16px; }
.card { font-size: 20px; }
.card .title { font-size: 1.5em; } /* 30px */
.card .note { font-size: 1.5rem; } /* 24px */Use the result in a real layout
For a 24px heading in a design whose root size is 16px, start with 1.5rem. For a label that should scale with a 20px card, 1.2em produces 24px in that card. Recheck the layout when the root size, parent size or user’s text preferences change.
The Chinese publishing-size table uses point values. Selecting 小四 loads 12pt, which corresponds to 16 CSS px. This is a size reference: the perceived size still depends on the font, line height and rendering, and it is not a guarantee of a physical print measurement.
Zero is a valid input size. Both base sizes must be positive; blank, negative or non-finite inputs show no result. Very large values may be rounded for display. The tool does not resolve calc(), clamp(), viewport units or an entire stylesheet.
Frequently asked questions
Can I convert em or pt back to px?
Yes. Select em, pt, rem or % as the input unit. The px result updates immediately.
Why do em and rem sometimes differ?
For font-size values, em uses the parent font size and rem uses the root font size. The converter lets you enter each base separately.
References and example checks
Examples checked against this tool: .