What Is 16px in rem?
16px = 1rem (at 16px base) At the browser-default 16px root font-size, 16px equals exactly 1rem. This is the anchor for every other conversion: rem = px ÷ 16.
Convert px to rem instantly. 16px = 1rem at the default base, plus any custom root font-size. Free, live two-way conversion that runs 100% in your browser.
The quick brown fox
16px = 1rem (at 16px base) At the browser-default 16px root font-size, 16px equals exactly 1rem. This is the anchor for every other conversion: rem = px ÷ 16.
rem = px ÷ root-font-size Divide the pixel value by the root font-size. For example, 24px ÷ 16 = 1.5rem. Change the base in the tool if your project does not use 16px.
62.5% → 1rem = 10px Setting html { font-size: 62.5% } makes the root 10px, so 1rem = 10px and rem math is just "divide by 10". Set this tool's base to 10 to use it.
A px to rem converter translates pixel measurements into rem units for CSS. 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 division — rem = px ÷ root-font-size — but doing it by hand for every font size, margin, and breakpoint in a stylesheet is tedious and error-prone, which is what this tool removes.
The reason to convert at all is accessibility and scalability. When a value is written in px, it is locked to a fixed size and ignores the user's browser font-size preference. When it is written in rem, it scales proportionally if the user increases their default font size — a critical accommodation for people with low vision and a smoother experience for everyone who zooms. Expressing a design system in rem also means a single change to the root font-size rescales the entire interface consistently.
This converter keeps both the pixel and rem 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) converts differently from a default 16px setup. A live preview shows the resulting text size, and a reference table lists the most common px values at a 16px base for quick lookups.
Need the reverse direction? Use the rem to px converter. For tidying 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 */
/* rem = px ÷ root-font-size (16px by default) */
:root {
font-size: 16px; /* 1rem = 16px */
}
.title { font-size: 1.5rem; } /* 24px */
.body { font-size: 1rem; } /* 16px */
.caption{ font-size: 0.75rem; } /* 12px */
.card { padding: 1.5rem; } /* 24px */
/* JavaScript equivalent */
const pxToRem = (px, base = 16) => px / base;
console.log(pxToRem(24)); // 1.5
console.log(pxToRem(12)); // 0.75 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.
Pixels and rem fields stay linked in real time. Edit either side and the other updates instantly against your chosen base.
A preview line renders text at the resulting rem size so you can see the scale, not just the number.
Copy the px or rem value to your clipboard with a single click, ready to paste straight into your CSS.
A chart of the most common px values and their rem equivalents at a 16px base for quick, no-typing lookups.
All math happens locally in your browser. No server requests, no tracking, no data storage — your values never leave your device.
16
1rem
At the default 16px root font-size, 16px equals exactly 1rem. This is the baseline every other conversion is measured against: rem = px ÷ 16.
24
1.5rem
A 24px heading becomes 1.5rem (24 ÷ 16 = 1.5). Using rem means the heading scales automatically if the user changes their browser's default font size.
12
0.75rem
12px is 0.75rem at a 16px base. Fine print and captions are common candidates for rem so they respect the reader's font-size preferences.
8
0.5rem
8px equals 0.5rem. Many design systems express padding and margins in rem so spacing scales together with text.
18
1.125rem
If you set the root font-size to 10px (the 62.5% technique), 18px becomes 1.8rem. At the default 16px base, 18px is 1.125rem. Always convert against the base your project actually uses.
768
48rem
A 768px media-query breakpoint is 48rem at a 16px base. Rem-based breakpoints zoom more predictably when users scale their text.
Quick reference for the px values developers convert to rem most often, at the default 16px root font-size.
Divide 16 by the 16px root font-size to get 1rem. 16px is the anchor value — it equals exactly 1rem on a default setup, which is why it is the reference point for all other conversions.
16 px → 1 rem Memorize 16px = 1rem. From there, halve for 0.5rem (8px) and double for 2rem (32px).
Try it above — enter your pixel value and see the rem instantly.
Divide 24 by 16 to get 1.5rem. 24px is a common heading and large-button size, so 1.5rem appears frequently in design systems.
24 px → 1.5 rem 24px is exactly 1.5× the base, so it maps cleanly to 1.5rem — a tidy value for headings.
Try it above — enter your pixel value and see the rem instantly.
Divide 12 by 16 to get 0.75rem. 12px is a common size for captions, labels, and fine print that should still respect user font-size preferences.
12 px → 0.75 rem 12px = 0.75rem (three quarters of the base). Useful for secondary text.
Try it above — enter your pixel value and see the rem instantly.
Divide 14 by 16 to get 0.875rem. 14px is a very common body and UI text size, so 0.875rem shows up constantly in component libraries.
14 px → 0.875 rem 14px = 0.875rem. It is the default text size in many UI frameworks.
Try it above — enter your pixel value and see the rem instantly.
Divide 32 by 16 to get 2rem. 32px is a frequent large-heading and section-spacing value, mapping to a clean 2rem.
32 px → 2 rem 32px = 2rem, exactly double the base — easy to remember for big headings and generous spacing.
Try it above — enter your pixel value and see the rem instantly.
Divide 10 by 16 to get 0.625rem at the default base. Note that 10px is also the root font-size used by the 62.5% technique, where 10px would instead equal 1rem.
10 px → 0.625 rem At a 16px base, 10px = 0.625rem. If you adopt the 62.5% technique, set the base to 10 and 10px becomes 1rem.
Try it above — enter your pixel value and see the rem instantly.
Pre-calculated px to rem values at the default 16px root font-size. Bookmark this page for quick lookups.
| PX | REM |
|---|---|
| 8 | 0.5 |
| 9 | 0.5625 |
| 10 | 0.625 |
| 11 | 0.6875 |
| 12 | 0.75 |
| 13 | 0.8125 |
| 14 | 0.875 |
| 15 | 0.9375 |
| 16 | 1 |
| 17 | 1.0625 |
| 18 | 1.125 |
| 19 | 1.1875 |
| 20 | 1.25 |
| 21 | 1.3125 |
| 22 | 1.375 |
| 23 | 1.4375 |
| 24 | 1.5 |
| 28 | 1.75 |
| 32 | 2 |
| 36 | 2.25 |
| 40 | 2.5 |
| 44 | 2.75 |
| 48 | 3 |
| PX | REM |
|---|---|
| 56 | 3.5 |
| 64 | 4 |
| 72 | 4.5 |
| 80 | 5 |
| 88 | 5.5 |
| 96 | 6 |
Type or paste a number into the Pixels (px) field. The equivalent rem appears instantly — no convert button needed.
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.
The Rem field shows the converted value, the preview line renders text at that size, and the formula confirms the current ratio (e.g. 1rem = 16px).
Click the copy icon next to either field to copy the px or rem value to your clipboard, ready to paste into your CSS.
Conversion Tools
Convert between binary, hex, decimal, octal and any base (2-36) instantly. Free, private — all processing in your browser.
Conversion Tools
Convert HEX to RGB, HSL, OKLCH, OKLAB and CMYK in your browser — copy any format with one click. Free, no signup, your colors never leave the page.
Conversion Tools
Convert HEX colors to CMYK in your browser. Naive sRGB-based approximation for print previews. Free, no signup, your colors stay local.
Conversion Tools
Convert any hex color to HSL in your browser — 3-digit, 6-digit, 8-digit alpha all supported. Free, instant, no signup, your colors never leave the page.
Conversion Tools
Convert HEX to OKLCH for Tailwind v4 design tokens. Live perceptually-uniform output with Display P3 gamut warnings. Free, browser-only.
Conversion Tools
Convert any hex color code to RGB in your browser — 3-digit, 6-digit, and 8-digit alpha hex all supported. Free, instant, no signup, your colors never leave the page.