- Enter the numeric REM value you wish to convert into the input field.
- Verify or adjust the base root font size (defaults to 16px) to match your project's
<html>configuration. - Review the automatically calculated pixel (PX) result.
- Copy the converted value for use in your web development or design workflow.
REM to PX Converter
REM to PX Converter tool on AzWebTools.
Result
Fill inputs and click run.
How to Use This Tool
Learn More About REM to PX Converter
What is a REM Unit?
REM stands for "Root EM." It is a relative length unit in CSS used to specify sizes relative to the font size of the root element (the <html> tag). Unlike the em unit, which cascades and calculates its size relative to its immediate parent element, rem is strictly tied to the root. This prevents the compounding size issues that occur with deeply nested elements, making responsive design much easier to predict and manage.
The REM to PX Formula
The conversion between REM and Pixels is a straightforward multiplication equation based on the root font size:
PX = REM × Root Font Size (in px)
For example, the default root font size in virtually all modern web browsers is 16px. If you want to know the pixel equivalent of 2.5rem using this default size, the calculation is: 2.5 × 16 = 40px
Why Developers Convert REM to PX
Modern web accessibility standards strongly recommend using REM units for typography and spacing so that layouts scale appropriately when users increase their browser's default text size. However, developers still need to know pixel equivalents when:
- Slicing designs from pixel-native UI applications like Figma, Adobe XD, or Photoshop.
- Setting hard limits using
max-widthormin-widthin media queries. - Integrating fixed-dimension media (such as images, video players, or ad units) into a responsive grid.
- Working on legacy codebases or HTML email templates that do not fully support modern CSS relative units.
The Origin of the REM Unit
- Introduced
- CSS3 Specification
- Acronym
- Root EM
- Standard Default Scale
- 1rem = 16px
Examples
1.5 REM (16px base)
{"remValue":1.5,"basePixelSize":16}{
"remValue": 1.5,
"basePixelSize": 16
}2 REM (16px base)
{"remValue":2,"basePixelSize":16}{
"remValue": 2,
"basePixelSize": 16
}0.875 REM (16px base)
{"remValue":0.875,"basePixelSize":16}{
"remValue": 0.875,
"basePixelSize": 16
}Use Cases
- Translating responsive, REM-based web development code back into pixel measurements for UI designers using tools like Figma, Sketch, or Photoshop.
- Debugging layout, typography, or spacing issues directly in a browser's developer tools.
- Converting modern responsive components into legacy codebases or HTML emails that require fixed pixel values.
- Calculating explicit dimensions for fixed-size assets like HTML canvas elements or images based on a responsive grid framework.