All tools

PX / REM Converter

Convert a size in either direction using the root font size of your project.

1rem equals the root element’s computed font size. A base of 16px is common, but your stylesheet or the visitor’s preferences can change it.

Your result


Type that adapts.

Example: converting a set of design measurements

Your design uses 12, 16, 24 and 32 px, but the website uses REM values. Keep the actual root size at 16 px, paste those sizes into the batch field and get 0.75, 1, 1.5 and 2 rem. Download the CSV to keep the conversion sheet.

Put the result to work

  1. Enter the site’s actual root font size. A 16 px default is common, but check the computed html font size.
  2. Edit PX or REM to convert in either direction. Use the batch field when you have several PX measurements.
  3. Apply the value with its REM unit, then check the rendered page after text resizing or zoom.

In Oxygen, choose REM in the relevant size or spacing control and enter the calculated number. REM refers to the root font size; EM refers to the current element’s font size. Changing the root size changes REM-based measurements.

Build a consistent spacing scale →