REM
1 rem
1.0000 rem
Free · Instant · No signup
Convert pixels using a base font size.
REM
1 rem
1.0000 rem
EM
1 em
1.0000 em
Handoff specs arrive in px while modern CSS prefers rem for accessible scaling. Enter px and root font size, read rem instantly.
Default 16 px input at 16 px base is 1 rem, the spacing unit in many component libraries.
Copy exports px, rem, em, and base in one line for Slack or ticket comments.
Preview font stacks on the Web Safe Fonts Preview at the rem size you convert here.
Ship minified CSS with the CSS Minifier after token updates.
JSON config spacing sometimes lives beside CSS; validate JSON in the JSON Formatter on the same PR.
Divide by 16 mentally for quick checks: 24 px = 1.5 rem at default base.
Change base when the project sets html { font-size: 62.5%; } for 10 px rem math.
Rerun when design rebases from 14 px body to 16 px body so components stay aligned.
rem = px / base font size. em uses the same formula on this page when parent equals root. Default 16 px with base 16 yields 1 rem and 1 em.
Match your html or :root font-size. Browser default is 16 px. Design systems often keep 16 or use 10 for easy mental math (10 px = 1 rem).
Yes. Zero px yields 0 rem and 0 em. Negative px is blocked with an alert.
Values match when base equals parent size. Nested components with different parent font-size need manual em adjustment; this tool documents em relative to the base you enter.