Skip to main content

Utilities

PX / REM Calculator Documentation

Convert pixel values to rem or em units and back, based on a configurable root font size.

Use PX / REM Calculator
What does it do?

Convert pixel values to rem or em units and back, based on a configurable root font size.

How does it work?

SiteIndex divides or multiplies your pixel value by the root font size you set (16px by default) to convert between px, rem, and em units instantly.

When to use it
  • Convert a design's pixel spacing into rem units for a CSS design system.
  • Check what a rem value equals in pixels at a custom base font size.
  • Build a quick reference table of common px-to-rem conversions.
Inputs and outputs
Input
Text, files, or values entered in the browser, depending on the tool.
Output
A result shown in the browser that can be reviewed or copied where supported.
Limitations
  • Results depend on the input, browser, network, and external service involved.
  • This tool is informational and does not replace specialist diagnostics.
Privacy and data handling

Inputs for this browser-side tool are processed locally and are not sent to SiteIndex. Normal page analytics may still be collected as described in the Privacy Policy. Read the Privacy Policy.

How to use it

  1. Open the tool and enter the requested input.
  2. Run the check or conversion.
  3. Review the result and act on it within the limitations above.

Related tools