frontendhack-logo
23rem = 368px

At the default root font size of 16px, 23rem is exactly 368px.

Calculation based on a root font-size of 16 pixels.

How to convert 23rem to px

To convert rem to pixels, multiply the rem value by the root font size: px = rem × 16. For 23rem that is 23 × 16 = 368px.

368px is a very large size, typically used for hero headings, containers and big layout dimensions.

23rem at different root font sizes

Root font sizeInputResult
10px23rem230px
12px23rem276px
14px23rem322px
15px23rem345px
16px23rem368px
18px23rem414px
20px23rem460px
22px23rem506px
24px23rem552px

CSS examples

font-size: 23rem; /* 368px */
padding: 23rem;
margin-bottom: 23rem;
width: 23rem;

The same values in pixels, if you need a fixed size:

font-size: 368px;
padding: 368px;

Tailwind CSS equivalent

23rem is not part of the default Tailwind scale, but you can use an arbitrary value such as p-[23rem] or text-[23rem].

Nearby values

REMPixels
23rem368px
0.1rem1.6px
0.125rem2px
0.1875rem3px
0.2rem3.2px
0.25rem4px

Frequently Asked Questions

23rem equals 368px when the root font size is the browser default of 16px. The calculation is 23 × 16 = 368.

368px equals 23rem at a 16px root font size (368 ÷ 16 = 23).

Yes. rem is relative to the root font size, so 23rem becomes 414px at an 18px root and 460px at a 20px root. Use the base font size field above to try any value.

Prefer rem for font sizes, spacing and layout so they respect the user's browser font settings and scale for accessibility. Use px for details that should never scale, such as 1px borders or fixed icon sizes.