PX to REM Converter
Convert CSS pixels to rem units using your root font size.
Open toolConvert CSS rem values into exact pixel (px) measurements for a default 16px browser root or any custom html font-size.
Enter the inputs, then select Convert REM to pixels.
Result will appear here
In CSS, 1rem equals the computed font-size of the root <html> element. In almost all desktop and mobile browsers, the default root font-size is 16px unless overridden by a stylesheet or user accessibility setting.
Pixels (px) = REM Value x Root Font Size (px). With the standard 16px root: 0.75rem = 12px, 0.875rem = 14px, 1rem = 16px, 1.25rem = 20px, and 1.5rem = 24px.
If your project uses the 62.5% root trick (html { font-size: 62.5%; }), set Root font size in pixels to 10 so that 1rem = 10px.
Exact pixel equivalents for the most common CSS typography and spacing rem values.
| REM Value | Pixels (16px Root) | Pixels (14px Root) | Pixels (10px / 62.5% Root) | Typical CSS Use Case |
|---|---|---|---|---|
| 0.25rem | 4px | 3.5px | 2.5px | Tight icon gap / fine border offset |
| 0.5rem | 8px | 7px | 5px | Base 8pt grid spacing unit |
| 0.75rem | 12px | 10.5px | 7.5px | Captions, badges, and table labels |
| 0.875rem | 14px | 12.25px | 8.75px | Secondary UI text and form controls |
| 0.9rem | 14.4px | 12.6px | 9px | Compact body text |
| 1rem | 16px | 14px | 10px | Default body copy (browser baseline) |
| 1.125rem | 18px | 15.75px | 11.25px | Lead paragraph / large body text |
| 1.2rem | 19.2px | 16.8px | 12px | Subheading / card title (minor third scale) |
| 1.25rem | 20px | 17.5px | 12.5px | H4 heading / modal title (major third scale) |
| 1.35rem | 21.6px | 18.9px | 13.5px | Custom intermediate heading size |
| 1.5rem | 24px | 21px | 15px | H3 section heading / 24px spacing token |
| 1.75rem | 28px | 24.5px | 17.5px | H2 tablet heading |
| 2rem | 32px | 28px | 20px | H2 desktop heading / 32px layout gap |
| 2.5rem | 40px | 35px | 25px | H1 page title |
| 3rem | 48px | 42px | 30px | Hero display headline |
Enter your rem value and match the root font size to your stylesheet's html selector.
Type any positive, negative, or decimal rem value (such as 0.75, 1.2, 1.35, or 1.5) into the REM value field.
Leave Root font size in pixels at 16 for standard browsers and Tailwind CSS defaults, or enter 10 if your CSS sets html { font-size: 62.5% }.
Select Calculate result to view the exact px value, then copy the result into your Figma spec or CSS stylesheet.
Translate responsive CSS tokens into pixel specs for design handoff and layout debugging.
With a 16px root, 0.75rem = 12px, 1.2rem = 19.2px, 1.35rem = 21.6px, and 1.5rem = 24px. Fractional pixel values like 19.2px and 21.6px are rendered using subpixel antialiasing in modern browsers.

Tailwind scales spacing where 1 unit = 0.25rem = 4px (at 16px root): p-3 is 0.75rem (12px), p-5 is 1.25rem (20px), and p-6 is 1.5rem (24px).

When a user changes their browser default font size from 16px to 20px for readability, setting Root font size to 20 shows how a 1.5rem heading scales from 24px to 30px automatically.

Understand why decimal rem values produce non-integer pixel counts at a 16px root.
Because 16 is a power of two (2^4), dividing 16 by 2, 4, 8, or 16 (such as 0.5rem, 0.75rem, 0.875rem, 1.25rem, 1.5rem) always produces an exact whole-number pixel value.
Tenths of a rem (such as 0.9rem = 14.4px, 1.2rem = 19.2px, or 1.35rem = 21.6px) produce decimal pixel values. CSS layout engines support fractional pixels natively for font-size, though 1px borders and crisp icons often snap to device pixels.

Make sure you are converting root-relative rem units rather than parent-relative em units.
Unlike em units (which multiply the font-size of the immediate parent element and can compound inside nested containers), rem always references the single <html> root element.
If your computed pixel size in DevTools does not match 16 x rem, inspect the <html> element in DevTools Computed Styles to see if a media query or CSS reset changed the root font-size.

Convert CSS pixels to rem units using your root font size.
Open tool
Generate a fluid font-size clamp between two viewport widths.
Open tool
Calculate Docker image uncompressed size, gzip/zstd registry pull size, and shared base-layer disk savings across multiple containers on a host node.
Open toolChoose another tool for your next calculation, conversion, or text task.

Apply the reversible ROT13 substitution to ASCII letters.
Open toolFormat SQL using the dialect and keyword case you choose.
Open tool
A static TTF, WOFF or WOFF2 font. Detect a supported TrueType container and repackage its SFNT tables into the selected output.
Open tool
Convert supported OpenType CFF1 outlines into a TrueType font. Review curve approximation and lost hinting or shaping data before using the result.
Open toolAnswers about using REM to PX Converter and understanding its results.
At the standard 16px browser root font size, 0.75rem = 12px (0.75 x 16), 1.25rem = 20px (1.25 x 16), and 1.5rem = 24px (1.5 x 16).
Multiplying by a 16px root gives 0.9rem = 14.4px, 1.2rem = 19.2px, and 1.35rem = 21.6px.
All major web browsers ship with a user-agent stylesheet that sets the default root <html> font-size to 16px. Unless your CSS overrides html { font-size: ... }, 1rem equals 16px.
Use rem for font sizes, container max-widths, and spacing so your layout scales proportionally when users increase their browser's default font size for visual accessibility.
Choose another tool for your next calculation, conversion, or text task.