DevBento logoDevBento
Tools/CSS Units Converter/Px to Rem Converter

Px to Rem Converter

Convert pixels to rem units instantly with this free CSS converter. Adjust the base font size and watch the px to rem conversion update in real time now.

Γ·base
Viewport settings
UnitValue
pxPixel16
ptPoint12
pcPica1
cmCentimeter0.42333333
mmMillimeter4.2333333
inInch0.16666667
remRoot em1
emEm1
vwViewport width1.1111111
vhViewport height1.7777778
vminViewport minimum1.7777778
vmaxViewport maximum1.1111111
exx-height (approx)2
chCharacter width (approx)1.6666667
Related Tools
πŸ“CSS Units Converter
Convert between CSS units instantly: px, rem, em, vw, vh, pt, cm, mm, and more. Set your base font size and viewport dimensions for accurate conversions.
πŸ“Unit Converter
Convert between length, weight, temperature, speed, area, volume, data, and time units instantly. Metric, imperial, and more. No server, no signup.

Convert Pixels to Rem

Enter a pixel value to convert it to rem units. The conversion divides your pixel value by the root font size (default 16px). This is the most common CSS unit conversion for modern web development.

Common Pixel to Rem Values

Pixels Rem (16px base) Rem (14px base) Use Case
12px 0.75rem 0.857rem Small text
14px 0.875rem 1rem Body text
16px 1rem 1.143rem Base font size
18px 1.125rem 1.286rem Heading text
24px 1.5rem 1.714rem H3 headings
32px 2rem 2.286rem H2 headings
48px 3rem 3.429rem H1 headings

How to Use

  1. The tool opens with 16px pre-filled, converting to 1rem
  2. Type any pixel value in the input field
  3. Adjust the base font size if your project uses something other than 16px
  4. Copy the rem value from the results table

Real-World Example

A design spec calls for 24px padding with a 16px root font size. Divide 24 by 16 to get 1.5rem. If your root font size is 14px, divide 24 by 14 to get approximately 1.714rem.

For more conversions, see the full CSS Units Converter or try Rem to Px.

πŸ”’

Nothing you paste leaves this tab. Every tool runs entirely in your browser β€” no upload, no server, no account.

Β© 2026 devbento.dev Β· built local-firstChangelog