PX to REM Converter

Convert px and rem values for CSS instantly. Change the root font size to update the conversion and reference chart.

This tool has been used … times.

Convert px and rem

px
pxCSS px value
remCSS rem value

Conversion uses 1rem = 16px.

Common size reference

Select a px value to load it into the converter above.

Base: 16px
pxremTypical use
0.5remSmall spacing
0.625remFine print
0.75remNotes and captions
0.875remSmall body text
1remStandard body text
1.125remComfortable body text
1.25remSubheadings
1.5remHeadings
2remLarge headings
3remPage titles

rem is based on the root element (html) font size. Browsers commonly use 16px by default, but a site’s CSS may set a different value.

How to use this converter

  1. Enter your site’s root font size from 1 to 100px. The default is 16px.
  2. Enter a number in either the px or rem field to convert the other value automatically.
  3. Use the button below either field to copy a CSS value with its unit, such as 24px or 1.5rem.
  4. Select a px value in the reference chart to see its rem equivalent.
Conversion formulasrem = px ÷ root font sizepx = rem × root font size

For example, with a 16px root font size, 24px ÷ 16 = 1.5rem. If your site uses a 62.5% root size (10px when the browser default is 16px), set the base to 10px.

Please review the Terms of Service for this web app before using it.

Found a bug or have feedback? Let us know here.

Report bugs, display issues, usability problems, or suggestions for improvement.
Consent
– This form is for bug reports only. In principle, we do not respond to individual submissions.
– If a submission contains defamatory, threatening, or otherwise inappropriate content, we may take appropriate action based on logs such as IP addresses.