px to rem
Snapshot
1 Pixels equals 0.0625 REM.
- Reference basis: This conversion uses CSS pixel-based scaling anchored to 96 pixels per inch.
- Example: For 8 Pixels, the result equals 0.5 REM.
Interactive conversion
Converter Calculator
Decimals: 1.5 or 1,5. Fractions: 1/2. Scientific notation: 1e3. Write 1000 without grouping separators.
0.0625 REM (16px root) (rem)
SwitchAPI and AI agent access
px to rem.
Machine-readable identifiers
- Conversion family
typography-units- Source unit
pixels- Target unit
rem_16_root
Use these identifiers in the API request. Sources and model limits also apply to software clients.
Example API request and response
POST /api/v1/convertRequest
{
"family": "typography-units",
"value": 1,
"from": "pixels",
"to": "rem_16_root"
}Essential response
{
"ok": true,
"conversion": {
"family": "typography-units",
"value": 1,
"from": "pixels",
"to": "rem_16_root",
"result": {
"raw": 0.0625,
"display": "0.0625"
},
"canonicalPath": "/typography-units/pixels-to-rem-16-root/"
}
}Explanation
Multiply by 0.0625 because 1 px = 1 px and 1 rem = 16 px. Assumption: Assumes a 16px root font size.
Common Conversion Values
| Pixels (px) | REM (16px root) (rem) |
|---|---|
| 8 | 0.5 |
| 10 | 0.625 |
| 12 | 0.75 |
| 14 | 0.875 |
| 16 | 1 |
| 18 | 1.125 |
| 24 | 1.5 |
| 32 | 2 |
| 48 | 3 |
| 96 | 6 |
Questions & answers
Frequently Asked Questions
What defines px to rem?
Both units are normalized through CSS pixels, then converted using a fixed ratio.