Convert rem to em at any parent font size

1.5rem is 1.2em inside a block with 20px text, because rem follows the html element while em follows the parent's font-size. With the default 16px in both fields, 1.5rem is simply 1.5em. Type your rem value, set both font sizes and the converter gives you the em value ready for your stylesheet.

Content last reviewed:
rem
em

1 rem × 1 = 1 em

Examples

In font-size, em is based on the parent’s font-size. In padding, margin or width it is based on the element’s own font-size, so enter that value here instead.

Why convert rem to em?

Rem gives you the same size across the whole document, because it is measured from the html element. Em is measured from the element you use it on, and in the font-size property from the parent[1]. You convert rem to em when a size should follow the text of one part of the page rather than the whole site.

A button is the classic case. Write its padding in em and changing the button's font-size alone makes the whole button, gaps included, larger or smaller. On a button with 14px text, 1rem of padding is 1.1429em and 0.75rem is 0.8571em.

If the size in your design file is in pixels, go straight to the right unit with the px to em converter or the px to rem converter.

A column of text set line by line in individual pieces of lead type on a printing bed
This column of text is set line by line from individual pieces of lead type. Every piece has the same point size, and in typesetting that size is what one em measures. Photo: Etienne Girardet, Unsplash.

How do you convert rem to em? Formula and example

The formula reverses the em to rem route: em = rem × html font size ÷ parent font size. The first step gives you pixels and the second turns them into em.

Say your stylesheet has 1.5rem and you want the same size inside a block with 20px text. That is 1.5 × 16 = 24px, and 24 ÷ 20 = 1.2em. Inside a 24px block, 2rem comes to 1.3333em.

In the Parent font-size field, enter the font size the em should be measured from. For font-size that is the parent, and for padding, margin or width it is the element's own font size[1]. The Base font-size field is the html element. If your stylesheet has html { font-size: 62.5% }, type 62.5% and 1rem inside a 16px parent gives 0.625em.

How many em are common rem values?

Rows start at 0.01 rem and go up in steps of 0.01 rem to 3 rem. The html element is 16px in every column while the parent changes. The columns match small print (12px), a button (14px) and two heading sizes.
Step
Decimal places

Choose the value the table starts at, the step between rows and the number of decimal places. The Smaller values and Larger values buttons move the table.

Value in rem12px parent14px parent18px parent20px parent
0.01 rem0.0133 em0.0114 em0.0089 em0.008 em
0.02 rem0.0267 em0.0229 em0.0178 em0.016 em
0.03 rem0.04 em0.0343 em0.0267 em0.024 em
0.04 rem0.0533 em0.0457 em0.0356 em0.032 em
0.05 rem0.0667 em0.0571 em0.0444 em0.04 em
0.06 rem0.08 em0.0686 em0.0533 em0.048 em
0.07 rem0.0933 em0.08 em0.0622 em0.1 em
0.08 rem0.1067 em0.0914 em0.0711 em0.1 em
0.09 rem0.12 em0.1029 em0.08 em0.1 em
0.1 rem0.1333 em0.1143 em0.0889 em0.1 em
0.11 rem0.1467 em0.1257 em0.0978 em0.1 em
0.12 rem0.16 em0.1371 em0.1067 em0.1 em
0.13 rem0.1733 em0.1486 em0.1156 em0.1 em
0.14 rem0.1867 em0.16 em0.1244 em0.1 em
0.15 rem0.2 em0.1714 em0.1333 em0.1 em
0.16 rem0.2133 em0.1829 em0.1422 em0.1 em
0.17 rem0.2267 em0.1943 em0.1511 em0.1 em
0.18 rem0.24 em0.2057 em0.16 em0.1 em
0.19 rem0.2533 em0.2171 em0.1689 em0.2 em
0.2 rem0.2667 em0.2286 em0.1778 em0.2 em
0.21 rem0.28 em0.24 em0.1867 em0.2 em
0.22 rem0.2933 em0.2514 em0.1956 em0.2 em
0.23 rem0.3067 em0.2629 em0.2044 em0.2 em
0.24 rem0.32 em0.2743 em0.2133 em0.2 em
0.25 rem0.3333 em0.2857 em0.2222 em0.2 em
0.26 rem0.3467 em0.2971 em0.2311 em0.2 em
0.27 rem0.36 em0.3086 em0.24 em0.2 em
0.28 rem0.3733 em0.32 em0.2489 em0.2 em
0.29 rem0.3867 em0.3314 em0.2578 em0.2 em
0.3 rem0.4 em0.3429 em0.2667 em0.2 em
0.31 rem0.4133 em0.3543 em0.2756 em0.2 em
0.32 rem0.4267 em0.3657 em0.2844 em0.3 em
0.33 rem0.44 em0.3771 em0.2933 em0.3 em
0.34 rem0.4533 em0.3886 em0.3022 em0.3 em
0.35 rem0.4667 em0.4 em0.3111 em0.3 em
0.36 rem0.48 em0.4114 em0.32 em0.3 em
0.37 rem0.4933 em0.4229 em0.3289 em0.3 em
0.38 rem0.5067 em0.4343 em0.3378 em0.3 em
0.39 rem0.52 em0.4457 em0.3467 em0.3 em
0.4 rem0.5333 em0.4571 em0.3556 em0.3 em
0.41 rem0.5467 em0.4686 em0.3644 em0.3 em
0.42 rem0.56 em0.48 em0.3733 em0.3 em
0.43 rem0.5733 em0.4914 em0.3822 em0.3 em
0.44 rem0.5867 em0.5029 em0.3911 em0.4 em
0.45 rem0.6 em0.5143 em0.4 em0.4 em
0.46 rem0.6133 em0.5257 em0.4089 em0.4 em
0.47 rem0.6267 em0.5371 em0.4178 em0.4 em
0.48 rem0.64 em0.5486 em0.4267 em0.4 em
0.49 rem0.6533 em0.56 em0.4356 em0.4 em
0.5 rem0.6667 em0.5714 em0.4444 em0.4 em
0.51 rem0.68 em0.5829 em0.4533 em0.4 em
0.52 rem0.6933 em0.5943 em0.4622 em0.4 em
0.53 rem0.7067 em0.6057 em0.4711 em0.4 em
0.54 rem0.72 em0.6171 em0.48 em0.4 em
0.55 rem0.7333 em0.6286 em0.4889 em0.4 em
0.56 rem0.7467 em0.64 em0.4978 em0.4 em
0.57 rem0.76 em0.6514 em0.5067 em0.5 em
0.58 rem0.7733 em0.6629 em0.5156 em0.5 em
0.59 rem0.7867 em0.6743 em0.5244 em0.5 em
0.6 rem0.8 em0.6857 em0.5333 em0.5 em
0.61 rem0.8133 em0.6971 em0.5422 em0.5 em
0.62 rem0.8267 em0.7086 em0.5511 em0.5 em
0.63 rem0.84 em0.72 em0.56 em0.5 em
0.64 rem0.8533 em0.7314 em0.5689 em0.5 em
0.65 rem0.8667 em0.7429 em0.5778 em0.5 em
0.66 rem0.88 em0.7543 em0.5867 em0.5 em
0.67 rem0.8933 em0.7657 em0.5956 em0.5 em
0.68 rem0.9067 em0.7771 em0.6044 em0.5 em
0.69 rem0.92 em0.7886 em0.6133 em0.6 em
0.7 rem0.9333 em0.8 em0.6222 em0.6 em
0.71 rem0.9467 em0.8114 em0.6311 em0.6 em
0.72 rem0.96 em0.8229 em0.64 em0.6 em
0.73 rem0.9733 em0.8343 em0.6489 em0.6 em
0.74 rem0.9867 em0.8457 em0.6578 em0.6 em
0.75 rem1 em0.8571 em0.6667 em0.6 em
0.76 rem1.0133 em0.8686 em0.6756 em0.6 em
0.77 rem1.0267 em0.88 em0.6844 em0.6 em
0.78 rem1.04 em0.8914 em0.6933 em0.6 em
0.79 rem1.0533 em0.9029 em0.7022 em0.6 em
0.8 rem1.0667 em0.9143 em0.7111 em0.6 em
0.81 rem1.08 em0.9257 em0.72 em0.6 em
0.82 rem1.0933 em0.9371 em0.7289 em0.7 em
0.83 rem1.1067 em0.9486 em0.7378 em0.7 em
0.84 rem1.12 em0.96 em0.7467 em0.7 em
0.85 rem1.1333 em0.9714 em0.7556 em0.7 em
0.86 rem1.1467 em0.9829 em0.7644 em0.7 em
0.87 rem1.16 em0.9943 em0.7733 em0.7 em
0.88 rem1.1733 em1.0057 em0.7822 em0.7 em
0.89 rem1.1867 em1.0171 em0.7911 em0.7 em
0.9 rem1.2 em1.0286 em0.8 em0.7 em
0.91 rem1.2133 em1.04 em0.8089 em0.7 em
0.92 rem1.2267 em1.0514 em0.8178 em0.7 em
0.93 rem1.24 em1.0629 em0.8267 em0.7 em
0.94 rem1.2533 em1.0743 em0.8356 em0.8 em
0.95 rem1.2667 em1.0857 em0.8444 em0.8 em
0.96 rem1.28 em1.0971 em0.8533 em0.8 em
0.97 rem1.2933 em1.1086 em0.8622 em0.8 em
0.98 rem1.3067 em1.12 em0.8711 em0.8 em
0.99 rem1.32 em1.1314 em0.88 em0.8 em
1 rem1.3333 em1.1429 em0.8889 em0.8 em
1.01 rem1.3467 em1.1543 em0.8978 em0.8 em
1.02 rem1.36 em1.1657 em0.9067 em0.8 em
1.03 rem1.3733 em1.1771 em0.9156 em0.8 em
1.04 rem1.3867 em1.1886 em0.9244 em0.8 em
1.05 rem1.4 em1.2 em0.9333 em0.8 em
1.06 rem1.4133 em1.2114 em0.9422 em0.8 em
1.07 rem1.4267 em1.2229 em0.9511 em0.9 em
1.08 rem1.44 em1.2343 em0.96 em0.9 em
1.09 rem1.4533 em1.2457 em0.9689 em0.9 em
1.1 rem1.4667 em1.2571 em0.9778 em0.9 em
1.11 rem1.48 em1.2686 em0.9867 em0.9 em
1.12 rem1.4933 em1.28 em0.9956 em0.9 em
1.13 rem1.5067 em1.2914 em1.0044 em0.9 em
1.14 rem1.52 em1.3029 em1.0133 em0.9 em
1.15 rem1.5333 em1.3143 em1.0222 em0.9 em
1.16 rem1.5467 em1.3257 em1.0311 em0.9 em
1.17 rem1.56 em1.3371 em1.04 em0.9 em
1.18 rem1.5733 em1.3486 em1.0489 em0.9 em
1.19 rem1.5867 em1.36 em1.0578 em1 em
1.2 rem1.6 em1.3714 em1.0667 em1 em
1.21 rem1.6133 em1.3829 em1.0756 em1 em
1.22 rem1.6267 em1.3943 em1.0844 em1 em
1.23 rem1.64 em1.4057 em1.0933 em1 em
1.24 rem1.6533 em1.4171 em1.1022 em1 em
1.25 rem1.6667 em1.4286 em1.1111 em1 em
1.26 rem1.68 em1.44 em1.12 em1 em
1.27 rem1.6933 em1.4514 em1.1289 em1 em
1.28 rem1.7067 em1.4629 em1.1378 em1 em
1.29 rem1.72 em1.4743 em1.1467 em1 em
1.3 rem1.7333 em1.4857 em1.1556 em1 em
1.31 rem1.7467 em1.4971 em1.1644 em1 em
1.32 rem1.76 em1.5086 em1.1733 em1.1 em
1.33 rem1.7733 em1.52 em1.1822 em1.1 em
1.34 rem1.7867 em1.5314 em1.1911 em1.1 em
1.35 rem1.8 em1.5429 em1.2 em1.1 em
1.36 rem1.8133 em1.5543 em1.2089 em1.1 em
1.37 rem1.8267 em1.5657 em1.2178 em1.1 em
1.38 rem1.84 em1.5771 em1.2267 em1.1 em
1.39 rem1.8533 em1.5886 em1.2356 em1.1 em
1.4 rem1.8667 em1.6 em1.2444 em1.1 em
1.41 rem1.88 em1.6114 em1.2533 em1.1 em
1.42 rem1.8933 em1.6229 em1.2622 em1.1 em
1.43 rem1.9067 em1.6343 em1.2711 em1.1 em
1.44 rem1.92 em1.6457 em1.28 em1.2 em
1.45 rem1.9333 em1.6571 em1.2889 em1.2 em
1.46 rem1.9467 em1.6686 em1.2978 em1.2 em
1.47 rem1.96 em1.68 em1.3067 em1.2 em
1.48 rem1.9733 em1.6914 em1.3156 em1.2 em
1.49 rem1.9867 em1.7029 em1.3244 em1.2 em
1.5 rem2 em1.7143 em1.3333 em1.2 em
1.51 rem2.0133 em1.7257 em1.3422 em1.2 em
1.52 rem2.0267 em1.7371 em1.3511 em1.2 em
1.53 rem2.04 em1.7486 em1.36 em1.2 em
1.54 rem2.0533 em1.76 em1.3689 em1.2 em
1.55 rem2.0667 em1.7714 em1.3778 em1.2 em
1.56 rem2.08 em1.7829 em1.3867 em1.2 em
1.57 rem2.0933 em1.7943 em1.3956 em1.3 em
1.58 rem2.1067 em1.8057 em1.4044 em1.3 em
1.59 rem2.12 em1.8171 em1.4133 em1.3 em
1.6 rem2.1333 em1.8286 em1.4222 em1.3 em
1.61 rem2.1467 em1.84 em1.4311 em1.3 em
1.62 rem2.16 em1.8514 em1.44 em1.3 em
1.63 rem2.1733 em1.8629 em1.4489 em1.3 em
1.64 rem2.1867 em1.8743 em1.4578 em1.3 em
1.65 rem2.2 em1.8857 em1.4667 em1.3 em
1.66 rem2.2133 em1.8971 em1.4756 em1.3 em
1.67 rem2.2267 em1.9086 em1.4844 em1.3 em
1.68 rem2.24 em1.92 em1.4933 em1.3 em
1.69 rem2.2533 em1.9314 em1.5022 em1.4 em
1.7 rem2.2667 em1.9429 em1.5111 em1.4 em
1.71 rem2.28 em1.9543 em1.52 em1.4 em
1.72 rem2.2933 em1.9657 em1.5289 em1.4 em
1.73 rem2.3067 em1.9771 em1.5378 em1.4 em
1.74 rem2.32 em1.9886 em1.5467 em1.4 em
1.75 rem2.3333 em2 em1.5556 em1.4 em
1.76 rem2.3467 em2.0114 em1.5644 em1.4 em
1.77 rem2.36 em2.0229 em1.5733 em1.4 em
1.78 rem2.3733 em2.0343 em1.5822 em1.4 em
1.79 rem2.3867 em2.0457 em1.5911 em1.4 em
1.8 rem2.4 em2.0571 em1.6 em1.4 em
1.81 rem2.4133 em2.0686 em1.6089 em1.4 em
1.82 rem2.4267 em2.08 em1.6178 em1.5 em
1.83 rem2.44 em2.0914 em1.6267 em1.5 em
1.84 rem2.4533 em2.1029 em1.6356 em1.5 em
1.85 rem2.4667 em2.1143 em1.6444 em1.5 em
1.86 rem2.48 em2.1257 em1.6533 em1.5 em
1.87 rem2.4933 em2.1371 em1.6622 em1.5 em
1.88 rem2.5067 em2.1486 em1.6711 em1.5 em
1.89 rem2.52 em2.16 em1.68 em1.5 em
1.9 rem2.5333 em2.1714 em1.6889 em1.5 em
1.91 rem2.5467 em2.1829 em1.6978 em1.5 em
1.92 rem2.56 em2.1943 em1.7067 em1.5 em
1.93 rem2.5733 em2.2057 em1.7156 em1.5 em
1.94 rem2.5867 em2.2171 em1.7244 em1.6 em
1.95 rem2.6 em2.2286 em1.7333 em1.6 em
1.96 rem2.6133 em2.24 em1.7422 em1.6 em
1.97 rem2.6267 em2.2514 em1.7511 em1.6 em
1.98 rem2.64 em2.2629 em1.76 em1.6 em
1.99 rem2.6533 em2.2743 em1.7689 em1.6 em
2 rem2.6667 em2.2857 em1.7778 em1.6 em
2.01 rem2.68 em2.2971 em1.7867 em1.6 em
2.02 rem2.6933 em2.3086 em1.7956 em1.6 em
2.03 rem2.7067 em2.32 em1.8044 em1.6 em
2.04 rem2.72 em2.3314 em1.8133 em1.6 em
2.05 rem2.7333 em2.3429 em1.8222 em1.6 em
2.06 rem2.7467 em2.3543 em1.8311 em1.6 em
2.07 rem2.76 em2.3657 em1.84 em1.7 em
2.08 rem2.7733 em2.3771 em1.8489 em1.7 em
2.09 rem2.7867 em2.3886 em1.8578 em1.7 em
2.1 rem2.8 em2.4 em1.8667 em1.7 em
2.11 rem2.8133 em2.4114 em1.8756 em1.7 em
2.12 rem2.8267 em2.4229 em1.8844 em1.7 em
2.13 rem2.84 em2.4343 em1.8933 em1.7 em
2.14 rem2.8533 em2.4457 em1.9022 em1.7 em
2.15 rem2.8667 em2.4571 em1.9111 em1.7 em
2.16 rem2.88 em2.4686 em1.92 em1.7 em
2.17 rem2.8933 em2.48 em1.9289 em1.7 em
2.18 rem2.9067 em2.4914 em1.9378 em1.7 em
2.19 rem2.92 em2.5029 em1.9467 em1.8 em
2.2 rem2.9333 em2.5143 em1.9556 em1.8 em
2.21 rem2.9467 em2.5257 em1.9644 em1.8 em
2.22 rem2.96 em2.5371 em1.9733 em1.8 em
2.23 rem2.9733 em2.5486 em1.9822 em1.8 em
2.24 rem2.9867 em2.56 em1.9911 em1.8 em
2.25 rem3 em2.5714 em2 em1.8 em
2.26 rem3.0133 em2.5829 em2.0089 em1.8 em
2.27 rem3.0267 em2.5943 em2.0178 em1.8 em
2.28 rem3.04 em2.6057 em2.0267 em1.8 em
2.29 rem3.0533 em2.6171 em2.0356 em1.8 em
2.3 rem3.0667 em2.6286 em2.0444 em1.8 em
2.31 rem3.08 em2.64 em2.0533 em1.8 em
2.32 rem3.0933 em2.6514 em2.0622 em1.9 em
2.33 rem3.1067 em2.6629 em2.0711 em1.9 em
2.34 rem3.12 em2.6743 em2.08 em1.9 em
2.35 rem3.1333 em2.6857 em2.0889 em1.9 em
2.36 rem3.1467 em2.6971 em2.0978 em1.9 em
2.37 rem3.16 em2.7086 em2.1067 em1.9 em
2.38 rem3.1733 em2.72 em2.1156 em1.9 em
2.39 rem3.1867 em2.7314 em2.1244 em1.9 em
2.4 rem3.2 em2.7429 em2.1333 em1.9 em
2.41 rem3.2133 em2.7543 em2.1422 em1.9 em
2.42 rem3.2267 em2.7657 em2.1511 em1.9 em
2.43 rem3.24 em2.7771 em2.16 em1.9 em
2.44 rem3.2533 em2.7886 em2.1689 em2 em
2.45 rem3.2667 em2.8 em2.1778 em2 em
2.46 rem3.28 em2.8114 em2.1867 em2 em
2.47 rem3.2933 em2.8229 em2.1956 em2 em
2.48 rem3.3067 em2.8343 em2.2044 em2 em
2.49 rem3.32 em2.8457 em2.2133 em2 em
2.5 rem3.3333 em2.8571 em2.2222 em2 em
2.51 rem3.3467 em2.8686 em2.2311 em2 em
2.52 rem3.36 em2.88 em2.24 em2 em
2.53 rem3.3733 em2.8914 em2.2489 em2 em
2.54 rem3.3867 em2.9029 em2.2578 em2 em
2.55 rem3.4 em2.9143 em2.2667 em2 em
2.56 rem3.4133 em2.9257 em2.2756 em2 em
2.57 rem3.4267 em2.9371 em2.2844 em2.1 em
2.58 rem3.44 em2.9486 em2.2933 em2.1 em
2.59 rem3.4533 em2.96 em2.3022 em2.1 em
2.6 rem3.4667 em2.9714 em2.3111 em2.1 em
2.61 rem3.48 em2.9829 em2.32 em2.1 em
2.62 rem3.4933 em2.9943 em2.3289 em2.1 em
2.63 rem3.5067 em3.0057 em2.3378 em2.1 em
2.64 rem3.52 em3.0171 em2.3467 em2.1 em
2.65 rem3.5333 em3.0286 em2.3556 em2.1 em
2.66 rem3.5467 em3.04 em2.3644 em2.1 em
2.67 rem3.56 em3.0514 em2.3733 em2.1 em
2.68 rem3.5733 em3.0629 em2.3822 em2.1 em
2.69 rem3.5867 em3.0743 em2.3911 em2.2 em
2.7 rem3.6 em3.0857 em2.4 em2.2 em
2.71 rem3.6133 em3.0971 em2.4089 em2.2 em
2.72 rem3.6267 em3.1086 em2.4178 em2.2 em
2.73 rem3.64 em3.12 em2.4267 em2.2 em
2.74 rem3.6533 em3.1314 em2.4356 em2.2 em
2.75 rem3.6667 em3.1429 em2.4444 em2.2 em
2.76 rem3.68 em3.1543 em2.4533 em2.2 em
2.77 rem3.6933 em3.1657 em2.4622 em2.2 em
2.78 rem3.7067 em3.1771 em2.4711 em2.2 em
2.79 rem3.72 em3.1886 em2.48 em2.2 em
2.8 rem3.7333 em3.2 em2.4889 em2.2 em
2.81 rem3.7467 em3.2114 em2.4978 em2.2 em
2.82 rem3.76 em3.2229 em2.5067 em2.3 em
2.83 rem3.7733 em3.2343 em2.5156 em2.3 em
2.84 rem3.7867 em3.2457 em2.5244 em2.3 em
2.85 rem3.8 em3.2571 em2.5333 em2.3 em
2.86 rem3.8133 em3.2686 em2.5422 em2.3 em
2.87 rem3.8267 em3.28 em2.5511 em2.3 em
2.88 rem3.84 em3.2914 em2.56 em2.3 em
2.89 rem3.8533 em3.3029 em2.5689 em2.3 em
2.9 rem3.8667 em3.3143 em2.5778 em2.3 em
2.91 rem3.88 em3.3257 em2.5867 em2.3 em
2.92 rem3.8933 em3.3371 em2.5956 em2.3 em
2.93 rem3.9067 em3.3486 em2.6044 em2.3 em
2.94 rem3.92 em3.36 em2.6133 em2.4 em
2.95 rem3.9333 em3.3714 em2.6222 em2.4 em
2.96 rem3.9467 em3.3829 em2.6311 em2.4 em
2.97 rem3.96 em3.3943 em2.64 em2.4 em
2.98 rem3.9733 em3.4057 em2.6489 em2.4 em
2.99 rem3.9867 em3.4171 em2.6578 em2.4 em
3 rem4 em3.4286 em2.6667 em2.4 em

Why are email templates written in em?

Email clients read CSS far less reliably than browsers. According to Can I email tests, about 69.05 percent of clients support the rem unit[2], while em works in every client with a test result[3].

Rem fails in every tested version of Outlook for Windows from 2003 to 2019, in the Windows Mail app, and in Yahoo Mail and AOL on the web, iOS and Android[2]. If your newsletter template was built in rem, convert its sizes to em before you send it.

Corner of a laptop screen showing a Gmail inbox with 152 messages in the Inbox folder
The laptop shows a Gmail inbox with 152 messages in the Inbox folder. Gmail reads both rem and em, but the same email also lands in clients that ignore rem. Photo: Justin Morgan, Unsplash.

Which email clients read rem, and which read em?

The table collects Can I email results for the clients your subscribers are most likely to use. Most of the tests were run in 2020.
Email clientremem
Outlook for Windows, 2003 to 2019Not supportedSupported
Windows MailNot supportedSupported
Outlook.com on the webSupportedSupported
Gmail on the web, Android and iOSSupportedSupported
Apple Mail on macOS and iOSSupportedSupported
Yahoo MailNot supportedSupported
AOLNot supportedSupported
ThunderbirdSupportedSupported
Samsung EmailSupportedSupported
The result covers the unit alone. Whether the whole template displays correctly also depends on other CSS properties, so send a test to the clients your subscribers use before the real send.

When will you convert rem to em?

  1. Newsletter template

    Sizes from your website written in rem move into the email in em, so Outlook for Windows does not drop them.
  2. Button in several sizes

    Padding and border radius in em grow with the button's text, so the small and large versions differ by a single font-size declaration.
  3. Icon next to text

    An icon with a width and height of 1em always matches the text it sits beside, in a paragraph or in a heading.
  4. Letter spacing

    Letter-spacing written in em, such as 0.05em, keeps the same proportion to the letters at every heading size.

Which number formats does this converter accept?

The field accepts and converts every one of these formats, so there is nothing to tidy up before you paste. The table shows what the converter does with each of them at the default 16px in both fields, and the results were calculated by the converter itself.
What you typeWhat the converter showsNote
1.51.5 emThe point is our decimal separator, so we read the number as one and a half.
1,51.5 emA comma followed by one digit is a European decimal comma, so a value copied from a colleague in Germany or France gives the same result.
font-size: 1.5rem;1.5 emYou can paste a whole declaration from your stylesheet, because we only take the number from it.
margin: -0.5rem;-0.5 emThe minus sign stays, since a negative margin in rem becomes a negative margin in em.
.8750.875 emA value without the leading zero, common in minified CSS, is read as 0.875.
3/40.75 emWe work out the fraction straight away, so there is no need to turn it into 0.75 first.
1½1.5 emThe ½ character is added to the number before it, so one and a half rem gives 1.5em.
1.5em1.5 emAn em value pasted into the rem field is converted to rem using both font-size fields, and a line under the field tells you so.
24px1.5 emPixels are divided by the html element's font size, so 24px at 16px lands in the field as 1.5rem, with a line under the field explaining the change.

Convert other units to em

Convert rem to other units

Sources

  1. CSS Values and Units Module Level 4 — W3C
  2. rem unit — Can I email
  3. em unit — Can I email

Every figure in the tables was computed from the unit definitions and checked arithmetically before publication. Historical values and the names of local units come from the sources listed above.

Content last reviewed: · written and checked by the Arteon team · How we check our tools

Frequently asked questions

Won't font-size in em cause trouble when elements are nested?

It can. A font-size in em is multiplied by the parent's font size, so an element set to 1.25em inside another element set to 1.25em ends up 1.5625 times the base size. That is why rem to em conversion is mostly used for a component's padding, margins and widths, while font sizes stay in rem.

Can I just replace rem with em across my whole email template?

Only if you convert every value from the right font size. The same rem value gives one em value in the header and another in the footer, so swapping the unit in your editor without converting gives sizes that differ from the design.

Are my values sent to a server?

No. The whole calculation runs in your browser and the numbers you type never leave it.

Help us improve our tools

Have an idea for a feature, found a bug, or want to suggest another tool? Write to us.