PX to RLH Converter (Root Line Height Unit)
Convert Pixels to RLH.
Loading converter...
What Is PX to RLH Converter? (Pixels to Root Line Height)
A PX to RLH Converter converts pixels into root line-height (rlh) units using the document's root line height.
How To Find PX to RLH?
To find PX to RLH, divide the pixel value by the root line-height (set on the HTML root) and convert it into rlh units. This ensures consistent spacing across the website. Compare with RLH to PX or element-relative PX to LH.
PX to RLH Formula
rlh=
pxroot line-height
Where:
pxPixels — The pixel size you want to convert.
root line-heightRoot Line Height — The computed line-height of the root HTML element.
rlhRLH Units — The root line-height unit equivalent.
PX to RLH Conversion Table (Base Font 16px)
| PX (px) | RLH (rlh) |
|---|---|
| 1px | 0.0417rlh |
| 2px | 0.0833rlh |
| 3px | 0.125rlh |
| 4px | 0.1667rlh |
| 5px | 0.2083rlh |
| 6px | 0.25rlh |
| 7px | 0.2917rlh |
| 8px | 0.3333rlh |
| 9px | 0.375rlh |
| 10px | 0.4167rlh |
| 11px | 0.4583rlh |
| 12px | 0.5rlh |
| 13px | 0.5417rlh |
| 14px | 0.5833rlh |
| 15px | 0.625rlh |
| 16px | 0.6667rlh |
| 17px | 0.7083rlh |
| 18px | 0.75rlh |
| 19px | 0.7917rlh |
| 20px | 0.8333rlh |
| 22px | 0.9167rlh |
| 24px | 1rlh |
| 26px | 1.0833rlh |
| 28px | 1.1667rlh |
| 30px | 1.25rlh |
| 32px | 1.3333rlh |
| 36px | 1.5rlh |
| 40px | 1.6667rlh |
| 44px | 1.8333rlh |
| 48px | 2rlh |
| 52px | 2.1667rlh |
| 56px | 2.3333rlh |
| 60px | 2.5rlh |
| 64px | 2.6667rlh |
| 72px | 3rlh |
| 80px | 3.3333rlh |
| 88px | 3.6667rlh |
| 96px | 4rlh |
| 100px | 4.1667rlh |
| 112px | 4.6667rlh |
| 120px | 5rlh |
| 128px | 5.3333rlh |
| 136px | 5.6667rlh |
| 144px | 6rlh |
| 160px | 6.6667rlh |
| 192px | 8rlh |
| 200px | 8.3333rlh |
| 240px | 10rlh |
| 256px | 10.6667rlh |
| 288px | 12rlh |
| 300px | 12.5rlh |
| 320px | 13.3333rlh |
| 360px | 15rlh |
| 384px | 16rlh |
| 400px | 16.6667rlh |
| 480px | 20rlh |
| 512px | 21.3333rlh |
| 576px | 24rlh |
| 600px | 25rlh |
| 640px | 26.6667rlh |
| 720px | 30rlh |
| 768px | 32rlh |
| 800px | 33.3333rlh |
| 960px | 40rlh |
| 1024px | 42.6667rlh |
| 1080px | 45rlh |
| 1200px | 50rlh |
| 1280px | 53.3333rlh |
| 1366px | 56.9167rlh |
| 1440px | 60rlh |
| 1536px | 64rlh |
| 1920px | 80rlh |
Convert back using RLH to PX or compare with element-relative PX to LH.