Skip to content

REM to PX Converter — Convert Rem to Pixels

Convert rem to px instantly. 1rem = 16px at the default base, plus any custom root font-size. Free, live two-way conversion that runs 100% in your browser.

No Tracking Runs in Browser Free
px
Preview

The quick brown fox

Reviewed for CSS rem-unit accuracy and accessibility guidance — Go Tools Engineering Team · Jun 11, 2026

Quick Reference

What Is 1rem in px?

1rem = 16px (at 16px base) At the browser-default 16px root font-size, 1rem equals exactly 16px. This is the anchor for every conversion: px = rem × 16.

What Is the rem to px Formula?

px = rem × root-font-size Multiply the rem value by the root font-size. For example, 1.5rem × 16 = 24px. Change the base in the tool if your project does not use 16px.

What Is the 62.5% Trick?

62.5% → 1rem = 10px Setting html { font-size: 62.5% } makes the root 10px, so 1rem = 10px and rem-to-px is just "multiply by 10". Set this tool's base to 10 to use it.

What Is a REM to PX Converter?

A rem to px converter translates rem units into pixel measurements. The rem ("root em") unit is relative to the font-size of the root element: 1rem always equals the root font-size, which browsers set to 16px by default. The conversion is a simple multiplication — px = rem × root-font-size — but checking it for every value while reading or debugging a stylesheet is repetitive, which is what this tool removes.

Developers usually author CSS in rem for accessibility and scalability: values written in rem scale with the user's browser font-size preference, while px values stay fixed. But there are many moments when you need the pixel figure — matching a design mockup, handing off sizes to a designer who works in pixels, setting a px-only property, or debugging why an element renders at a particular size. That is when converting rem back to px is exactly what you want.

This converter keeps the rem and pixel fields linked in real time, so you can move in either direction, and — unlike tools that hard-code a 16px base — it lets you set any root font-size. That matters because a stylesheet using the 62.5% technique (a 10px root) resolves rem to different pixel values than a default 16px setup. A live preview shows the resulting text size, and a reference table lists common rem values at a 16px base for quick lookups.

Need the other direction? Use the px to rem converter. For cleaning up the stylesheet itself, try the CSS formatter, and for color work see the color converter. Everything runs in your browser — your values never leave your device.

/* The core formula */
/* px = rem × root-font-size (16px by default) */

:root {
  font-size: 16px; /* 1rem = 16px */
}

/* 1.5rem  -> 24px */
/* 1rem    -> 16px */
/* 0.75rem -> 12px */
/* 2rem    -> 32px */

/* JavaScript equivalent */
const remToPx = (rem, base = 16) => rem * base;
console.log(remToPx(1.5)); // 24
console.log(remToPx(0.75)); // 12

Key Features of This REM to PX Converter

Custom Root Font-Size

Convert against any base, not just 16px. Match the 62.5% (10px) technique or your project's actual root font-size — most tools hard-code 16.

Live Two-Way Conversion

Rem and pixels fields stay linked in real time. Edit either side and the other updates instantly against your chosen base.

Built-In Size Preview

A preview line renders text at the entered rem size so you can see the scale, not just the number.

One-Click Copy

Copy the rem or px value to your clipboard with a single click, ready to paste into CSS or a design tool.

Reference Conversion Table

A chart of common rem values and their pixel equivalents at a 16px base for quick, no-typing lookups.

100% Browser-Based & Private

All math happens locally in your browser. No server requests, no tracking, no data storage — your values never leave your device.

REM to PX Conversion Examples

Body Text — 1rem to px

1
16px

At the default 16px root font-size, 1rem equals exactly 16px. This is the baseline for every other conversion: px = rem × 16.

Heading — 1.5rem to px

1.5
24px

1.5rem resolves to 24px (1.5 × 16). Headings are often authored in rem so they scale with the user's font-size preference but still map to familiar pixel sizes.

Small Label — 0.75rem to px

0.75
12px

0.75rem is 12px at a 16px base. Checking the pixel value helps confirm fine print stays legible.

Spacing — 0.5rem to px

0.5
8px

0.5rem equals 8px. Design systems often express padding and margins in rem; converting back to px is handy for pixel-precise review.

Large Heading — 2rem to px

2
32px

2rem is exactly double the base, 32px. Clean multiples like this are common for prominent headings.

Breakpoint — 48rem to px

48
768px

A 48rem media-query breakpoint resolves to 768px at a 16px base — a familiar tablet-width threshold expressed in scalable units.

How to Convert Common rem Values to px

Quick reference for the rem values developers convert to px most often, at the default 16px root font-size.

How to Convert 1rem to px

1 rem 16 px

Multiply 1 by the 16px root font-size to get 16px. 1rem is the anchor value — it equals exactly 16px on a default setup, the reference point for all other conversions.

1 rem 16 px

Memorize 1rem = 16px. From there, halve for 0.5rem (8px) and double for 2rem (32px).

Try it above — enter your rem value and see the pixels instantly.

How to Convert 1.5rem to px

1.5 rem 24 px

Multiply 1.5 by 16 to get 24px. 1.5rem is a common heading and large-button size, so 24px appears frequently in design systems.

1.5 rem 24 px

1.5rem = 24px. A tidy heading size that is exactly 1.5× the base.

Try it above — enter your rem value and see the pixels instantly.

How to Convert 0.75rem to px

0.75 rem 12 px

Multiply 0.75 by 16 to get 12px. 0.75rem is a common size for captions, labels, and fine print.

0.75 rem 12 px

0.75rem = 12px (three quarters of the base). Useful for secondary text.

Try it above — enter your rem value and see the pixels instantly.

How to Convert 0.875rem to px

0.875 rem 14 px

Multiply 0.875 by 16 to get 14px. 0.875rem is a very common body and UI text size in component libraries.

0.875 rem 14 px

0.875rem = 14px, the default text size in many UI frameworks.

Try it above — enter your rem value and see the pixels instantly.

How to Convert 2rem to px

2 rem 32 px

Multiply 2 by 16 to get 32px. 2rem is a frequent large-heading and section-spacing value, mapping to a clean 32px.

2 rem 32 px

2rem = 32px, exactly double the base — easy to remember for big headings and spacing.

Try it above — enter your rem value and see the pixels instantly.

How to Convert 0.5rem to px

0.5 rem 8 px

Multiply 0.5 by 16 to get 8px. 0.5rem is a common spacing increment for padding, margins, and gaps.

0.5 rem 8 px

0.5rem = 8px, half the base — a frequent small-spacing unit.

Try it above — enter your rem value and see the pixels instantly.

REM to PX Conversion Chart

Pre-calculated rem to px values at the default 16px root font-size. Bookmark this page for quick lookups.

Rem to Pixels (16px base)

Rem to pixels conversion table at a 16px root font-size
REM PX
0.25 4
0.5 8
0.75 12
1 16
1.25 20
1.5 24
1.75 28
2 32
2.25 36
2.5 40
2.75 44
3 48

Larger Rem Values to px

Larger rem values to pixels at a 16px root font-size
REM PX
3.5 56
4 64
4.5 72
5 80
5.5 88
6 96
6.5 104
7 112
7.5 120
8 128

How to Use the REM to PX Converter

  1. 1

    Enter a Rem Value

    Type or paste a number into the Rem field. The equivalent pixels appear instantly — no convert button needed.

  2. 2

    Set the Root Font-Size (optional)

    The base defaults to 16px. Change it to match your project — for example 10px for the 62.5% technique — and every result updates against the new base.

  3. 3

    Read the Pixel Result and Preview

    The Pixels field shows the converted value, the preview line renders text at that size, and the formula confirms the current ratio (e.g. 1rem = 16px).

  4. 4

    Copy the Value

    Click the copy icon next to either field to copy the rem or px value to your clipboard, ready to paste where you need it.

Use Cases for REM to PX Conversion

Matching a Pixel Mockup
Check what rem values in your CSS resolve to in pixels so they line up with a designer's px-based mockup.
Design Hand-Off
Translate a rem-based design system back to px when communicating sizes to designers or stakeholders who think in pixels.
Debugging Layout and Type
Quickly resolve rem font sizes, spacing, and breakpoints to pixels while diagnosing why something renders at a given size.
Verifying the 62.5% Technique
Convert rem to px against a 10px root font-size to confirm values when using html { font-size: 62.5% }.
Setting px-Only Properties
Get the exact pixel figure for a property or tool that expects pixels rather than rem.
Reviewing Component Libraries
See the pixel sizes behind a rem-based component library to audit spacing and typography scales.

Technical Details

The rem Unit
rem is relative to the root font-size. 1rem equals that font-size in pixels — 16px by default — so px = rem × root-font-size.
Double-Precision Arithmetic
Conversions use IEEE 754 double-precision floating point, rounded to at most five decimals with trailing zeros trimmed for clean values.
Client-Side Processing
All conversion logic runs in JavaScript within your browser. Zero network calls are made — the tool works fully offline once loaded.

Best Practices for Using rem and px

Convert Against Your Real Base
Always use the root font-size your stylesheet actually sets. A 10px base (62.5% technique) resolves rem to different pixels than the 16px default.
Author in rem, Verify in px
Keep your CSS in rem for accessibility and use the pixel figure for review, hand-off, and debugging — not as a reason to hard-code px.
Mind Compounding em vs rem
If a value resolves unexpectedly, confirm it is rem (root-relative) and not em (parent-relative), which compounds when nested.

REM to PX FAQ

What is 1rem in pixels?
1rem equals the root font-size in pixels — 16px by default. The rem unit is relative to the font-size of the root element, so px = rem × root-font-size. On a standard setup 1rem = 16px, 1.5rem = 24px, and 2rem = 32px. If a stylesheet changes the root font-size, the pixel value of 1rem changes with it.
How do you convert rem to px?
To convert rem to px, multiply the rem value by the root font-size (16px by default). The formula is px = rem × base. For example, 1.5rem × 16 = 24px, and 0.75rem × 16 = 12px. This tool does the multiplication for you in real time and lets you change the base if your project uses a different root font-size.
What is 16px in rem?
16px equals 1rem at the default 16px root font-size, because rem = px ÷ base. This is the reverse of the rem-to-px direction: 1rem = 16px, so 16px = 1rem. Change the base in the tool, or use the px to rem converter, if your project does not use a 16px root.
Why do designs use rem instead of px?
Rem units respect the user's browser font-size preference, which is important for accessibility. When someone increases their default font size, everything sized in rem scales proportionally, while px values stay fixed. Rem also keeps a design system consistent — change one root font-size and the whole interface rescales. Converting rem back to px is still useful for pixel-precise review, design hand-off, and debugging.
What is the difference between rem, em, and px?
px is an absolute unit — a fixed CSS pixel. rem is relative to the root () font-size, so it is consistent across the page. em is relative to the font-size of the current element's parent, so it compounds when nested. Use rem for most sizing so it scales with the user's preference, px for fixed details like 1px borders, and em when you want a value to scale relative to its local context.
What is the 62.5% font-size trick?
Setting html { font-size: 62.5% } makes the root font-size 10px (62.5% of the 16px default). With a 10px base, 1rem = 10px, so rem-to-px is just "multiply by 10": 1.6rem = 16px, 2.4rem = 24px. Many developers like the simpler arithmetic, then set body { font-size: 1.6rem } for readable 16px body text. Set this tool's root font-size to 10 to convert against the 62.5% base.
Can I change the root font-size in this converter?
Yes. The Root font-size field defaults to 16px but accepts any value — 10, 18, 20, or whatever your project uses. Every conversion and the reference table update against the base you set. Click 'Reset to 16' to return to the default. Most converters hard-code 16px; the custom base is what lets this tool match your real stylesheet.
Is 1rem always 16px?
Only when the root font-size is 16px, which is the default in virtually all browsers. The relationship 1rem = 16px holds as long as html { font-size } is not overridden. If a stylesheet sets the root font-size to 10px or 18px, then 1rem equals that value instead. Always convert against the page's actual root font-size.
When should I convert rem back to px?
Converting rem to px is useful when you need pixel-precise values: matching a design mockup, communicating sizes to a designer who works in pixels, setting a px-only property, or debugging why an element renders at a certain size. The rem authoring stays in your CSS for scalability; the px figure is for verification and hand-off.
Does it matter which root font-size I use for the conversion?
Yes — the root font-size is the multiplier, so it directly changes the result. 2rem is 32px at a 16px base but 20px at a 10px base. If your stylesheet uses the 62.5% technique or any custom root font-size, set the tool's base to match, or the pixel values will be wrong.
How accurate is this rem to px converter?
Conversions use IEEE 754 double-precision arithmetic and the exact formula px = rem × base, with results rounded to at most five decimal places and trailing zeros trimmed. That is far finer than the browser needs, and the math is deterministic, so you can rely on it for production work.
Is my data safe when using this converter?
Completely. All conversions run locally in your browser using JavaScript. No values are sent to any server — there are no network requests, no cookies on your input, and no analytics on what you type. You can verify it by disconnecting from the internet: the tool keeps working fully offline once the page has loaded.

Related Tools

View all tools →