REM
1 rem
1.0000 rem
Free · Instant · No signup
Convert pixels using a base font size.
Page updated 2026-09-04.
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.
rem scales with the root font size, so user zoom and your html font-size still move the design. em scales with the parent font-size. This page uses one base size (default 16px) for both. Nested em in CSS can compound; rem does not. Convert UI spacing to rem unless you have a reason to use em.
Web Safe Fonts Preview Tool Preview stacks on sample text.
CSS Minifier & Optimizer Strip comments, shorten hex, and see original vs minified bytes saved.
Color Picker from Image Sample colors from a canvas image.
JSON Minifier and Indenter 2-space, 4-space, tab, or compact JSON with auto-fix and line/column errors.
SVG to PNG Converter Convert SVG to PNG in the browser.