Conversion Form

REM
EM

About the Unit

REM (Root EM): REM is a relative unit that depends on the root font size, typically defined in the `<html>` element of the document. The main advantage of REM is that it provides a consistent and scalable way to work with measurement units in web design, especially when creating responsive and accessible layouts. When you define the root font size, for example, as 16px, 1rem will be equivalent to 16px. If the root font size is changed, all measurements in rem will adjust proportionally, which makes controlling the layout as a whole easier. This is especially useful for ensuring that the design is consistent and accessible, as users can adjust the font size in the browser. Using rem instead of px helps maintain the layout's proportions when scaling the page globally without needing to adjust each value individually.

Pro Tip: remem

Em inherits from its parent element. Rem is consistent for global scaling.

Quick Reference: Unit Conversion by Tens

REMEM
10rem10em
20rem20em
30rem30em
40rem40em
50rem50em
60rem60em
70rem70em
80rem80em
90rem90em
100rem100em
110rem110em
120rem120em
130rem130em
140rem140em
150rem150em
160rem160em
170rem170em
180rem180em
190rem190em
200rem200em
210rem210em
220rem220em
230rem230em
240rem240em
250rem250em

Live Unit Preview

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

10px

10rem

10em

10%

10vw

10vh

Common Mistake

Em inherits from its parent element. Rem is consistent for global scaling.

Real Code Example

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

Frequently Asked Questions About REM

When should I use rem instead of rem?

Use rem for consistent scaling across components.

How many rem is 1rem?

1rem = 16px by default.

Is rem affected by zoom?

Yes, it scales with user settings and zoom.

Is rem good for fonts?

Yes, it's preferred for accessibility.

Keyboard Shortcuts

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

More popular conversions