Font size converter
Convert a pixel font size to REM and points instantly. Starts with a 16px root font size.
Bookmark this page
Keep this page handy for next time.
- On a computer
- Press Ctrl + D, or Command + D on a Mac.
- On a phone or tablet
- Open your browser's menu or Share menu and look for Add Bookmark, Bookmark or Add to favourites.
A bookmark saves the page link. Save any tool results separately.
Example
Input
24px
Result
1.5rem / 18pt
For REM, divide pixels by the root font size: 24 / 16 = 1.5. For points, multiply by 0.75: 24px = 18pt. Changing the root to 20px gives 1.2rem, while the point size stays 18pt.
How to use this tool
- Enter a pixel size, such as 24 or 24px.
- Read or copy both the REM and point equivalents.
- The starting root font size is 16px. Change it under Options only if your page uses a different value.
Things to know
- REM is relative to the root element font size. The 16px starting value is a convenience, not a guarantee about your page.
- Points use the fixed CSS relationship 96px = 72pt. Screen zoom, device pixels and font metrics can change apparent size.
- Accepts one non-negative pixel value up to 1,000,000px. Results round to eight decimal places. This does not identify fonts or measure text in an image.
- Each text input accepts up to 5 MiB. Output is limited to 25 MiB and combined text settings to 1 MiB.
- Line-based modes accept up to 100,000 lines, including a trailing empty line.
Sources
You might also need
More in web developmentFluid Typography & Clamp Generator
Calculate a CSS clamp expression between two viewport sizes.
Image Print Size & PPI Calculator
Calculate print dimensions from pixel dimensions and resolution.
CSS formatter and minifier
Format or minify CSS without executing it.
CSS selector tester
Find matching elements in pasted HTML without rendering the supplied page.
CSS specificity calculator
Compare the specificity of CSS selectors.
Chmod calculator
Convert Unix permission modes into readable permissions and a ready-to-copy command.
CIDR range combiner
Combine overlapping or adjacent address ranges into the smallest equivalent CIDR list.
Content Security Policy builder
Build a policy from explicit directives and check common unsafe settings.
Cron builder and explainer
Preview the next occurrences of a five-field cron expression.