How to convert
Enter the value
Type the number without the unit. Decimals such as 1.75 are fine.
Choose what it is
Set From to px if you copied the size from a design file, or rem if it came from a stylesheet.
Check the root size
Leave Root font size at 16 unless the site sets
html { font-size }to something else. Some older themes use 62.5%, which makes the root 10px.Read the result and the table
The converted value appears in large type, and the table below recalculates the common sizes for your root, so a whole type scale can be copied at once.
Example: turning a mock-up into a stylesheet
An agency has a mock-up for a local plumber's landing page. The designer specified a 48px headline, 18px body copy and 14px small print. The developer wants rem values so the text grows if a visitor has raised the default size in their browser settings.
At a 16px root the three sizes come out as 3rem, 1.125rem and 0.875rem. Had the theme used a 10px root, the 18px body text would be 1.8rem instead, which is why the tool asks for the root.
18 px, root 16px 24 px, root 10px 1.75 rem, root 16px
1.125rem 2.4rem 28px
Why rem rather than px
A rem is relative to the font size of the root element, the html tag. If someone with low vision sets their browser to a larger default, text sized in rem grows with it; text fixed in px does not. That is a practical accessibility gain on any small business site, and it costs nothing once the conversion is done. Rem also behaves better than em, which follows the parent element and can compound inside nested components.
Questions people ask
What is 16px in rem?
Exactly 1rem when the root font size is the browser default of 16px. Most browsers ship with that default, and most sites leave it alone, which is why 16 is the usual starting point. If a stylesheet changes the root, 16px becomes a different rem value, so check the html rule first.
How many px is 1rem?
It equals the root font size. On a site that leaves the root alone, 1rem is 16px; with the 62.5% trick it is 10px. A visitor who raises the default text size in their browser changes it too, which is exactly why rem is worth using.
Why does the result show four decimal places?
Some sizes do not divide evenly. 13px at a 16px root is 0.8125rem, and 15px at a 12px root is 1.25rem but 14px is 1.1667rem. The tool rounds to four decimal places, which is far finer than any screen can display, so you can paste the figure as it is.
Where your data goes
The numbers you type are converted by script on this page. Nothing is sent to a server and nothing is kept once you close the tab.
Checked against the tool on