PX to REM Converter
About
rem is relative to the ROOT font size (the element), which defaults to 16px in every major browser and is the unit accessibility guidance favors: users who raise their browser font size get proportionally larger rem-based layouts, while px ignores them. Converting px designs to rem is the standard first step of making a fixed design fluid — divide by the root size (usually 16) and keep four decimals at most; browsers do not need more.
Frequently Asked Questions
Why is the default base 16?
Every major browser ships with a 16px default root font size; designs and frameworks (Tailwind's spacing scale among them) assume it unless the user or the CSS changes it.
Should I use px or relative units?
Relative units (rem for layout, em for component internals) respect user font preferences — an accessibility requirement in most guidelines. px survives for hairline borders and fixed media.