Pixel to REM Converter
Convert pixels to REM units and back. Set your base font size, see a reference table of common values, and copy CSS with one click.
Usually set to the root font-size (default 16px in browsers)
Pixels
16.00px
REM
1.000rem
CSS Output
Common Values Reference
| Pixels | REM | Usage |
|---|---|---|
| 12px | 0.750rem | Small text |
| 14px | 0.875rem | Body text |
| 16px | 1.000rem | Body text |
| 18px | 1.125rem | Subheading |
| 20px | 1.250rem | Subheading |
| 24px | 1.500rem | Heading |
| 32px | 2.000rem | Heading |
| 48px | 3.000rem | Large heading |
| 64px | 4.000rem | Large heading |
Text Preview
Small (12px / 0.750rem)
Base (16px / 1.000rem)
Large (24px / 1.500rem)
XL (32px / 2.000rem)
Why use REM?
REM units are relative to the root element's font size, making them perfect for scalable, accessible designs. They respond to user font-size preferences and are easier to maintain than pixels. Use REM for fonts and spacing, PX for borders and precise measurements.
Related Tools
CSS Box Shadow Generator
💻 Developer ToolsBuild CSS box shadows visually with live preview. Adjust offset, blur, spread, colour, and opacity. Stack multiple layers and copy the CSS.
CSS Gradient Generator
💻 Developer ToolsCreate beautiful CSS gradients with a visual builder. Choose colours, positions, angles, and gradient type. Copy the CSS with vendor prefixes.
Colour Contrast Checker
🎨 Creative & DesignCheck if your text and background colours meet WCAG accessibility standards (AA & AAA). Auto-fix suggestions included