PX to REM Converter
Convert pixel values to rem and back, one value or a whole list, using any root font size.
PX to REM Converter turns pixel values into rem and rem back into pixels, one value or a whole list at once, using the root font size you set. It also shows points. Values typed with a unit, such as 24px or 1.5rem, are read in that unit.
What is a rem?
rem
A CSS unit equal to the font size of the root element. Browsers default to 16px, so 1rem is 16px and 24px is 1.5rem unless the root size has been changed.
Why use rem
Sizes in rem grow when a reader raises the text size in their browser settings, while pixel sizes do not. That makes rem the better choice for type and spacing.
Why use PX to REM Converter?
- Convert a list. Paste every size from a design file at once, separated by spaces, commas or new lines, and get a table back.
- Any root size. Set the root to 10px, 18px or whatever your site uses.
- Export as CSV. Copy or download the table to drop into a spreadsheet or design token file.
How to use PX to REM Converter, step by step

- Type your values into PX to REM Converter. One number or many. Add px, rem, em or pt to any value to say which unit it is.
- Choose the direction and root size. Plain numbers are read as px or rem depending on the direction. The root size defaults to 16px.
- Copy the results. The table updates as you type. Use Copy CSV or Download CSV.
Frequently asked questions
Is em the same as rem?
Not always. An em is relative to the parent element, a rem to the root. This tool treats em values as rem, which is right only when the parent uses the root font size.
How are points worked out?
CSS defines 1px as 0.75pt, so 16px is 12pt.
Should I set the root to 62.5 percent?
That makes 1rem equal 10px for easy maths. If you do, set the root size here to 10.
Looking for the long version? The guides cover each of these jobs in depth.