About the PX to REM Converter
This tool converts single values between px and rem and shows three equivalents: rem, percent of the root, and points for print. You enter a Value, pick Convert px to rem or rem to px, and set the root font size in pixels. Results update instantly as you type; there is no calculate button. The page also shows a common sizes table for quick reference. The tool runs entirely in your browser and does not upload your data. Use it when you need quick checks while coding, when you review design specs, or when you test accessibility and responsive breakpoints. It gives the basic extra outputs people often miss, like points and percent of root, and lets you copy results or create a share link that reopens with your numbers.
How to use it
- 1Enter a numeric Value in the input field
- 2Choose Convert px to rem or Convert rem to px
- 3Set the Root font size (px)
- 4Copy the Result or use the share link to reopen your numbers
Worked example
Input: Value = 24, Convert = px to rem, Root font size = 16px. Result: 1.5rem. In points (print): 18pt. Percent of root: 150%.
How it works
rem = px / root font size, and px = rem x root font sizeWith the default 16 px root, 24px = 1.5rem1 px = 0.75 pt in CSSSource: W3C CSS Values and Units ModuleMDN Web Docs, Values and units. Last checked 7 November 2026.
What it is good for
- Instant, live results as you type with no calculate button
- Shows rem, percent of root, and points for print in one view
- Runs in your browser only; nothing is uploaded
- Single-value conversion only; no bulk stylesheet rewrite
- Does not provide precision or rounding controls
Questions people ask
How do I convert px to rem?
Divide the pixel value by the root font size in pixels. For example, with a 16px root, 24px becomes 24 ÷ 16 = 1.5rem.
What root font size should I use?
Most projects use the browser default of 16px. Check your html { font-size } if your project sets a different root. Use the root value your site uses.
Does rem respect user font settings and zoom?
Yes. rem is relative to the root font size, which reflects user and browser text-size settings. That makes rem-based sizes scale with user preferences.
Will rem units in media queries follow the html font-size?
No. Media queries using rem or em are evaluated against the browser initial font size, usually 16px. The html font-size you set does not change breakpoint evaluation.
Can I convert a whole stylesheet here?
No. This FreeToolr page handles single values and shows a common sizes table. Use tools like DevToolPal or ToolDash for bulk CSS rewrites.
Where do the numbers go and is my data saved?
All calculations run in your browser. Nothing is uploaded to a server. You can copy results or share a link that reopens with your numbers.
Help keep every tool free
FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.