Convert pixels to rem and back

CSS styles scale better in rem. Type a pixel value and get the rem value at your base size. Or go the other way. A table of common sizes sits below.

Stays on your device Free
1. Your base size

Browsers default to 16 pixels. Most sites keep it.

Local only
Your conversion
Common sizes

Tap a row to copy its rem value. The table follows the base size you set above.

This runs in your browser. Your file is not sent to us.

How to use px to rem

  1. Check the base size. 16 pixels is the browser default. Change it if your CSS differs.
  2. Type the value. Pixels or rem, the direction is your choice.
  3. Copy the answer. Clean numbers, ready for your stylesheet.

What you get

  • Pixels to rem and rem to pixels
  • Any base size, 16 by default
  • A table of the sizes you use most
  • One press to copy each value

Why this runs in your browser

Most free PDF sites ask you to upload your file. Then you wait. Then you hope they delete their copy. That is a bad deal for a payslip, a contract or a passport scan.

PX to REM reads the file on your device and saves the result to your downloads folder. There is no upload and no copy on a server. For the details, see how it works.

PX to REM questions

Why use rem instead of px?

Rem scales with the reader's chosen font size. That helps low-vision users and passes accessibility checks.

What is the base size?

One rem equals the root font size. Browsers default to 16 pixels, and most sites leave it there.

Why do some values come out long?

Not every pixel value divides neatly. The answer is rounded to three places, which is exact enough for CSS.