Convert pixels to rem and rem to pixels for CSS.
Convert CSS pixel values to rem and rem values back to pixels as you type. The calculation uses the root font size you choose; 16 px is a common default, but a site's html font size or a visitor's browser settings can change it.
Enter a single size or a space- or comma-separated list. Results are calculated in your browser, can be copied, and update with the selected base font size. The common-sizes table also recalculates for that base.
rem is relative to the root html font size, so it can scale with browser text-size preferences. This makes rem useful for accessible and flexible typography and spacing.
Convert px to rem and rem to px at the same time.
Updates as you type; calculations stay in your browser.
Convert whitespace- or comma-separated sizes in one go.
Use your site's root font size instead of the 16 px starting value.
Copy either converted value with one click.
See a table of common pixel sizes converted to rem for your chosen base.
Divide the pixel value by the root font size: 24px ÷ 16 = 1.5rem.
Multiply the rem value by the root font size: 1.5rem × 16 = 24px.
No. 16 px is a common browser default, but CSS on the page or browser settings can change it. Enter the root size used by your site for an accurate result.
rem is relative to the root (html) font size; em is relative to the font size of the current element.
rem-based sizes can scale with the root font size and browser text-size preferences, which can help people who need larger text.
If the browser's initial size is 16 px, 62.5% makes the root 10 px. Set Base font size to 10 px.
No. This converter calculates values in your browser and does not send them to a Mota SEO endpoint.