AI Tools Free

REM to PX Converter

Convert CSS rem values into exact pixel (px) measurements for a default 16px browser root or any custom html font-size.

Free to useNo sign-upRuns in your browser
Enter your details

Enter the inputs, then select Convert REM to pixels.

Your result
Enter your details

Result will appear here

How REM to PX Conversion Works in CSS

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.

Concept diagram for REM to PX Converter, showing rem value input and the supported output.
Concept diagram; the three operation images are actual browser captures.

CSS REM to PX Conversion Chart (16px Default vs 10px / 62.5% Root)

Exact pixel equivalents for the most common CSS typography and spacing rem values.

REM ValuePixels (16px Root)Pixels (14px Root)Pixels (10px / 62.5% Root)Typical CSS Use Case
0.25rem4px3.5px2.5pxTight icon gap / fine border offset
0.5rem8px7px5px Base 8pt grid spacing unit
0.75rem12px10.5px7.5pxCaptions, badges, and table labels
0.875rem14px12.25px8.75pxSecondary UI text and form controls
0.9rem14.4px12.6px9pxCompact body text
1rem16px14px10pxDefault body copy (browser baseline)
1.125rem18px15.75px11.25pxLead paragraph / large body text
1.2rem19.2px16.8px12pxSubheading / card title (minor third scale)
1.25rem20px17.5px12.5pxH4 heading / modal title (major third scale)
1.35rem21.6px18.9px13.5pxCustom intermediate heading size
1.5rem24px21px15pxH3 section heading / 24px spacing token
1.75rem28px24.5px17.5pxH2 tablet heading
2rem32px28px20pxH2 desktop heading / 32px layout gap
2.5rem40px35px25pxH1 page title
3rem48px42px30pxHero display headline

How to Convert REM to Pixels Step by Step

Enter your rem value and match the root font size to your stylesheet's html selector.

Enter the CSS REM value

Type any positive, negative, or decimal rem value (such as 0.75, 1.2, 1.35, or 1.5) into the REM value field.

Input and settings
REM to PX Converter: input and settings in the implemented browser tool
Actual local browser view. Open the image to read it at full size.

Confirm the root font size in pixels (default 16)

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% }.

Tool result
REM to PX Converter: tool result in the implemented browser tool
Actual local browser view. Open the image to read it at full size.

Calculate and copy the pixel value

Select Calculate result to view the exact px value, then copy the result into your Figma spec or CSS stylesheet.

Review the details
REM to PX Converter: review the details in the implemented browser tool
Actual local browser view. Open the image to read it at full size.

Common Frontend Scenarios for REM to PX Conversion

Translate responsive CSS tokens into pixel specs for design handoff and layout debugging.

Converting fractional typography values (0.75rem, 1.2rem, 1.35rem, 1.5rem)

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.

Developer input and configuration represented by document cards.
Prepare the input. Concept illustration.

Inspecting Tailwind CSS spacing and font utilities

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).

A developer example flowing from input to reviewed output.
Inspect an example. Concept illustration.

Testing user browser zoom and large-text accessibility

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.

Developer output handed to the next stage of a workflow.
Use the result in your workflow. Concept illustration.

How to Interpret Subpixel Results (14.4px, 19.2px, 21.6px)

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.

A developer result reviewed alongside its source.
Review the returned output. Concept illustration.

REM vs. EM and Root Font-Size Checks

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.

Input format and assumptions reviewed for a developer task.
Check format and assumptions. Concept illustration.

REM to PX Converter: Frequently Asked Questions

Answers about using REM to PX Converter and understanding its results.

What is 0.75rem, 1.25rem, and 1.5rem in pixels?

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).

What are 0.9rem, 1.2rem, and 1.35rem in px?

Multiplying by a 16px root gives 0.9rem = 14.4px, 1.2rem = 19.2px, and 1.35rem = 21.6px.

Why is 1rem equal to 16px by default?

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.

When should I use rem instead of px in CSS?

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.

Convert REM to pixels with your input

Choose another tool for your next calculation, conversion, or text task.

Convert REM to pixels