Conversion Table
Em | Millimeters |
---|---|
0.01em | 0.0042mm |
0.03em | 0.0127mm |
0.05em | 0.0212mm |
0.08em | 0.0339mm |
0.1em | 0.0423mm |
0.15em | 0.0635mm |
0.2em | 0.0847mm |
0.5em | 0.2117mm |
0.625em | 0.2646mm |
0.75em | 0.3175mm |
0.875em | 0.3704mm |
1em | 0.4233mm |
1.125em | 0.4763mm |
1.25em | 0.5292mm |
1.375em | 0.5821mm |
1.5em | 0.635mm |
1.625em | 0.6879mm |
1.75em | 0.7408mm |
1.875em | 0.7938mm |
2em | 0.8467mm |
2.125em | 0.8996mm |
2.25em | 0.9525mm |
2.375em | 1.0054mm |
2.5em | 1.0583mm |
2.625em | 1.1113mm |
2.75em | 1.1642mm |
2.875em | 1.2171mm |
3em | 1.27mm |
3.125em | 1.3229mm |
3.25em | 1.3758mm |
3.375em | 1.4288mm |
3.5em | 1.4817mm |
3.625em | 1.5346mm |
3.75em | 1.5875mm |
3.875em | 1.6404mm |
4em | 1.6933mm |
5em | 2.1167mm |
6em | 2.54mm |
8em | 3.3867mm |
10em | 4.2333mm |
15em | 6.35mm |
20em | 8.4667mm |
30em | 12.7mm |
40em | 16.9333mm |
50em | 21.1667mm |
60em | 25.4mm |
80em | 33.8667mm |
100em | 42.3333mm |
Differences Between em and mm
Em is a relative unit that scales according to the font size of the element it is used on. Millimeters (mm) are a physical unit of length used in metric measurements. Em units are useful for scalable and responsive design, while millimeters are used for precise physical measurements.
Advantages of Using em
Using em units allows for better scalability and flexibility in web design. Since em is relative to the font size of the parent element, it enables elements to scale proportionally. This is useful for responsive design and for respecting user preferences for font size.
How to Convert em to mm
To convert em to millimeters, you need to know the font size of the element. The formula for conversion is:
mm = em * font size * (25.4 / 96)
For example, to convert 2em to millimeters, assuming the font size is 16px:
2em * 16px * (25.4 / 96) = 8.467mm
Frequently Asked Questions
Why should I use em instead of mm?
Using em allows for more scalable and flexible layouts within the context of the current element's font size, improving the responsiveness and accessibility of your design.
How do I set the font size?
You can set the font size using CSS on the parent element. For example:
parent-element {
font-size: 16px;
}
Can I use em for all elements?
Yes, you can use em for most elements to ensure consistency and scalability within the context of the current element's font size.