PX to REM converter.
Turn pixel values from a design into rem for your CSS, at the root font size you use. Type in either field; the table lists the common sizes.
| px | rem |
|---|---|
| 8px | 0.5rem |
| 10px | 0.625rem |
| 12px | 0.75rem |
| 14px | 0.875rem |
| 16px | 1rem |
| 18px | 1.125rem |
| 20px | 1.25rem |
| 24px | 1.5rem |
| 28px | 1.75rem |
| 32px | 2rem |
| 36px | 2.25rem |
| 40px | 2.5rem |
| 48px | 3rem |
| 56px | 3.5rem |
| 64px | 4rem |
| 72px | 4.5rem |
| 80px | 5rem |
| 96px | 6rem |
Free tool, no warranty, no liability. The result is produced automatically by a free tool from transjt.ai, nothing more. It can be incomplete or wrong. transjt.ai gives no warranty and accepts no liability for decisions or changes based on it; check every result before you use it.
PX to REM in three steps.
- 01
Set the root font size
16 px unless your site changes the font size of html.
- 02
Type the pixels
The rem value follows as you type; it works the other way round too.
- 03
Copy the value
Ready to paste into your CSS, such as 1.5rem.
Try it with your build.
Design your website today, launch tomorrow.
Start for FreeBook a demo
Divide the pixels by the root font size: rem = px ÷ root font size. At the browser default of 16 px, 24 px is 24 ÷ 16 = 1.5rem.
A CSS length relative to the font size of the root element, html. Browsers set it to 16 px unless the site or the reader changes it.
Sizes in rem grow with the reader’s font size setting, so text and spacing stay readable for people who need larger type. Pixel sizes stay fixed.
It sets the root to 10 px so that 1rem equals 10 px and the maths is easier. Set the root font size above to 10 to convert for such a site.
Yes, with no sign-up and no limits.
Related tools.
- Aspect ratio calculatorThe ratio of any size, and new sizes that keep it.
- REM to PXRem back to pixels, at any root font size.
- EM to PXEm to pixels, at the parent element’s font size.
- PT to PXPoints from Word or print to screen pixels.
- Pixels to inchesPixels to inches and centimeters, at any DPI.
- All size converterspx, rem, em, pt and inches, and aspect ratios, with tables of common values.
- All free toolsSmall tools for the jobs around a website: images, colors, sizes and fonts, alt text, prompts for AI builders, and a check whether AI agents can use your site. The converters run in your browser, so nothing is uploaded.
Design your website today, launch tomorrow.
At transjt, every second counts. That’s why our mission is simple: save you time and remove friction from your workflow.