Pixel / REM Converter

Convert CSS pixels and rem units with a chosen root size.

Scope: The calculation uses the supplied root pixel size and does not inspect any document styles.

Workbench

Inputs stay on this page.

How to use Pixel / REM Converter

  1. Fill in the fields:

    • Direction: Pixels to rem, Rem to pixels.
    • Value: 0 to 1,000,000.
    • Root font size (px): 0.01 to 1,000.
  2. Press “Convert size”.

  3. Copy the result, or download it as pixel-rem-conversion.json.