Hoglet

PX to REM converter

The root font size: 16px in every browser unless the page or the person changes it.

The answer

24px = 1.5rem

Working: 24px ÷ 16px = 1.5rem

Common sizes at 16px

24px = 1.5rem at a 16px base

PX to REM Converter: px, rem, em, pt and %, Exact

Convert between px, rem, em and pt for a base size.

rem is a length measured in the root font size, the font size of the page’s html element: 16px unless the page or the person’s browser settings change it. Sizes in rem grow when someone sets a larger default font, which is why they are preferred for text. Type a length in any of the five fields (px, rem, em, pt or %) and the others follow; the base size, 16px to start with, is the field at the top. em and % are measured in the parent element’s font size, which is the root’s unless you give another in Options. A point is 1/72 inch and a CSS pixel 1/96 inch, so 1pt is 4/3 px wherever it is shown. Everything is worked exactly, as fractions: 1px at a 3px base is a third of a rem, shown rounded with ≈ in front. The working says how each answer was reached, and the table lists the sizes people look up most at the base chosen; press one to convert it. Nothing is sent anywhere.

How to use PX to REM converter

  1. Set the Base, the root font size, which starts at 16px.
  2. Type a length in px, rem, em, pt or %, and the other fields follow.
  3. Press the copy button beside the unit you need.

PX to REM converter: common questions

Does the px to rem converter send anything to a server?

No. The px to rem converter works everything out in your browser, on your device, and sends nothing anywhere. It works offline too.

How do you convert px to rem?

Divide the pixels by the root font size: at the usual 16px base, 24px is 24 ÷ 16 = 1.5rem. The px to rem converter works each answer as an exact fraction and puts ≈ in front of one that was rounded.

What is the difference between rem and em in CSS?

rem is measured in the root font size, the html element’s; em and % are measured in the parent element’s font size. The px to rem converter uses the base size for both unless you give a Parent font size in Options.

Everything stays on your device. Nothing is uploaded. Works offline once your first visit has stored the app.