How many pixels is that in rem?
Convert CSS lengths between px, rem, em, pt, pc, in, cm, mm and Q at your font size.
What you enter stays on your device while you use this tool. Opening a shared link sends the settings in its address to HowToolbox to prepare the page.
Result
16 px
1 rem equals 16 pixels
- The other way round: 1 px = 0.0625 rem.
In all units
- Pixels
- 16 px
- Root ems
- 1 rem
- Ems
- 1 em
- Points
- 12 pt
- Picas
- 1 pc
- Inches
- 0.1667 in
- Centimetres
- 0.4233 cm
- Millimetres
- 4.233 mm
- Quarter-millimetres
- 16.93 Q
Convert CSS lengths between px, rem, em, pt, pc, in, cm, mm and Q at your font size.
How to use
- Type the length you want to convert.
- Choose the units to convert from and to.
- Set the font size that 1 rem or 1 em stands for: 16 px unless your stylesheet changes it.
How it works
CSS has absolute lengths, fixed to each other, and font-relative ones. In CSS, an inch is always 96 px, so 1 pt (1/72 in) is 4/3 px, a pica is 16 px and 1 cm is about 37.8 px. These CSS pixels are not the screen's physical pixels; the browser scales them.
A rem is the font size of the root element and an em the font size of the element itself. Browsers default to 16 px, so rem = px ÷ 16 and 24 px = 1.5 rem. If your root font size is 20 px, 24 px is 1.2 rem. The converter uses the one font size you set for both, so for em, give the size that applies to that element.
The definitions come from the W3C CSS Values and Units Module Level 4. Viewport and container units (vw, vh, cqw) depend on the screen and are not included.
Frequently asked questions
How many pixels is 1 rem?
16 px at the browsers' default font size. It changes with the root font size, for example 10 px when html { font-size: 62.5% }.
What is the difference between em and rem?
rem always uses the root (html) font size; em uses the font size of the element it is on, so nested ems multiply.
How many pixels is 12 pt?
16 px: a point is 1/72 inch and a CSS inch is 96 px.
Is a CSS pixel always one screen pixel?
No. CSS pixels are reference units. The device pixel ratio and zoom determine how many physical pixels render one CSS pixel.
Can I convert vw or vh here?
No. They depend on the viewport dimensions. This converter supports fixed CSS lengths and em/rem at the font size you supply.
Next you might need
More in Unit conversion
- Temperature converter, private, runs on your device
- Astronomical distance converter, private, runs on your device
- Audio level converter, private, runs on your device
- Bitcoin unit converter, private, runs on your device
- Data rate converter, private, runs on your device
- Data size converter, private, runs on your device





