Instantly convert Pixels to REM and REM to Pixels.
A simple and fast tool to convert pixels values to rem units and back again for responsive web design. This canonical page covers both directions to avoid duplicate SEO pages for identical content.
Bases
Configure only the reference values required for this conversion pair.
Conversion
Edit either side, copy any result, or swap the displayed direction.
Pixels
REM
Canonical page shared by both directions: PX to REM and REM to PX.
Current conversion chart
A responsive visual curve based on the active direction and current base values.
Current conversion
24px = 1.5rem
Reverse conversion
1.5rem = 24px
Convert PX to pixels
Pixels = value
Convert pixels to REM
Result = Pixels / Root Font Size
Context
- Root font-size (base HTML): 16px
Step 1: Define the relevant context
Confirm the values that influence the conversion. Relative units like REM, EM, VW, VH, and % depend on the root font-size, parent font-size, parent length, or viewport dimensions.
Step 2: Convert the source value into pixels
Normalize the source unit into pixels first. This gives you a consistent base for accurate conversion across all CSS unit types.
Step 3: Convert pixels into the target unit
Once the intermediate pixel value is known, convert it into rem using the target formula below.
| Pixels | REM |
|---|---|
| 8px | 0.5rem |
| 10px | 0.625rem |
| 12px | 0.75rem |
| 14px | 0.875rem |
| 16px | 1rem |
| 18px | 1.125rem |
| 20px | 1.25rem |
| 24px | 1.5rem |
| 32px | 2rem |
| 48px | 3rem |
| 64px | 4rem |
| 72px | 4.5rem |
| 96px | 6rem |
Understanding Pixels
A pixel is the most familiar absolute unit for screens. It is easy to read and precise, but it does not automatically adapt to user font-size preferences.
Understanding REM
The rem unit scales from the root font-size of the document, making it a strong choice for accessible typography and consistent spacing systems.
Why convert PX and REM?
- System consistency: Work across design tokens, components, and documentation using a predictable translation between units.
- Responsive control: Compare fixed, relative, and contextual units without guessing how they behave in production layouts.
- SEO-safe structure: This page serves both directions of the same conversion pair to avoid duplicate content and consolidate relevance in one canonical destination.