PX to REM Converter

Convert pixels to REM values

FreeNo sign-upColor & CSS Tools →

PX to REM Converter turns a pixel value into rem by dividing it by the root font size. At the default 16 pixels, 24px is 1.5rem, 14px is 0.875rem and 10px is 0.625rem.

Sizing in rem means text and spacing scale when a user increases their browser's default font size, which fixed pixels do not. Change the base field if your project uses a different root size.

Advertisement

How to use PX to REM Converter

1

Enter the pixel value

For example 18.

2

Confirm the base size

Default is 16.

3

Copy the rem value

Paste it into your CSS.

Pixels to rem (16px root)

Based on the browser default root font size of 16px.

Pixelsrem
10.0625
20.125
40.25
60.375
80.5
100.625
120.75
130.8125
140.875
150.9375
161
181.125
201.25
241.5
281.75
322
362.25
402.5
483
563.5
644
724.5
805
966

Use Cases

  • Converting a pixel-based design to scalable CSS
  • Building a spacing scale
  • Refactoring legacy stylesheets

Frequently Asked Questions