Conversion Form

EM
MM

About the Unit

EM: EM is a relative unit that depends on the font size of the parent element in which the current element is inserted. That is, 1em will be equivalent to the font size of the parent element. If the font size of the parent element is 20px, 1em will be equal to 20px. This unit is particularly useful when you want to create dynamic layouts that adjust based on the context of the parent element. For example, using em instead of px ensures that the size of fonts, margins, or other layout elements will scale relative to the text size of the parent component, making the design more flexible and responsive. A key detail about em is that it can accumulate when used in chain (i.e., if a child element uses em to set its size and the parent element also uses em, the value will multiply), which can lead to unexpected results if not used carefully.

Pro Tip: emmm

Use em for scalable text, and mm for precise print measurements.

Quick Reference: Unit Conversion by Tens

EMMM
10em42.333333mm
20em84.666667mm
30em127mm
40em169.333333mm
50em211.666667mm
60em254mm
70em296.333333mm
80em338.666667mm
90em381mm
100em423.333333mm
110em465.666667mm
120em508mm
130em550.333333mm
140em592.666667mm
150em635mm
160em677.333333mm
170em719.666667mm
180em762mm
190em804.333333mm
200em846.666667mm
210em889mm
220em931.333333mm
230em973.666667mm
240em1016mm
250em1058.333333mm

Live Unit Preview

See how different CSS units affect the size of the box below:

10px

10rem

10em

10%

10vw

10vh

Common Mistake

Use em for scalable text, and mm for precise print measurements.

Real Code Example

/* Mobile-first card with em → mm */
.card {
  padding: 0em;     /* undefinedmm */
  font-size: 1.5rem;
  width: min(90vw, 40ch);
}

Frequently Asked Questions About EM

When should I use em instead of em?

Use em when scaling relative to parent is needed.

How many em is 1em?

Depends on parent font size.

Is em affected by zoom?

Yes, it scales with parent and zoom.

Is em good for fonts?

Yes, especially for nested components.

Keyboard Shortcuts

  • Ctrl + C: Convert
  • Ctrl + I: Invert units
  • Esc: Reset values

More popular conversions