pxtoremcalc.com PX to REM Calculator

Settings

Controls how many digits after the dot can be typed and shown in the live conversion result.

Ad preview

Promote your design tool to front-end developers

CTA

Sponsored placement

UI kits Design systems
Your ad could appear here

Conversion table

Common values for the current unit pair.

Shortcuts

Hot keys

Increase or decrease the focused value by 1.
Shift Increase or decrease the focused value by 10.
Alt Increase or decrease the focused value by 0.1.

PX to REM Converter and REM to PX Calculator

Convert Pixels and REM

Use this px to rem converter to convert pixels to rem instantly, or switch the inputs to use it as a rem to px converter. The calculator is based on your selected base font size, so you can convert `16px` to `1rem`, `24px` to `1.5rem`, or any custom value using the exact root size from your project. This makes it useful for developers and designers working with responsive typography, spacing scales, design systems, and modern CSS layouts.

REM vs EM

In CSS, `rem` is relative to the root font size of the page, while `em` depends on the current parent context. That is why a px to rem calculator is commonly used for global type scales, while px to em conversion is often used for component-level sizing. This converter supports both directions, so you can calculate px to rem, rem to px, px to em, em to px, and related CSS unit conversions from a single tool without manually dividing values.

PX, Percent, and Print Units

`px` is the most familiar CSS unit because it maps cleanly to fixed interface measurements like borders, icons, and spacing tokens. `%` is different because it is relative to another value, which makes it useful for fluid sizing and inherited text scaling. This converter also supports print and physical units such as `pt`, `pc`, `mm`, `cm`, `in`, and `q`, which are useful when translating layouts between screen design, PDFs, and print specifications.

When to Use Each Unit

In practice, developers often use `rem` for typography systems and spacing scales, `em` for component-local sizing, `px` for precision details, and `%` for relative layouts or text values that depend on another size. Physical units like `mm`, `cm`, `in`, and `pt` are less common in app UI, but they still matter for print CSS, document design, and any workflow where a design needs real-world measurement accuracy.

Base Font Size

If your default browser font size is different from `16px`, update the base font size above and the conversion table will recalculate automatically. That gives you an accurate px to rem conversion table for your own setup instead of a fixed generic formula, which is especially helpful when auditing existing interfaces, migrating hard-coded pixel values, or building a scalable rem-based design system.