REM to VH Converter
Convert CSS rem to vh (viewport height units). Auto-detects your viewport for instant results - essential for full-screen layouts and mobile-first design.
REM ? VH Calculator
Auto-filled from window.innerHeight. Edit to test different sizes.
Result
- vh
Enter values above to convert
Formula
1vh = 1% of viewport height. Result changes per viewport size.
Want to start investing in crypto now?
Discover how specific cryptocurrencies work — and get a bit of each crypto to try out for yourself.
What is REM to VH Conversion?
The REM to VH converter calculates the viewport height equivalent of a CSS rem value. The vh unit represents 1% of the browser's viewport height - perfect for full-screen hero sections, sticky headers, and modal overlays. Unlike absolute conversions, REM to VH depends on the viewport size, so our tool auto-detects your current viewport height for instant, accurate results.
VH Best Practices & Mobile Considerations
100vh on Mobile
Mobile browsers have dynamic toolbars that affect visible area. 100vh can overflow when address bar is visible. Use 100dvh (dynamic viewport height) for reliable full-screen on mobile.
? Use min-height
For hero sections use min-height: 100vh instead of height: 100vh. This allows content to grow if needed without overflow.
? clamp() with VH
For fluid font sizes: font-size: clamp(1rem, 2.5vh, 2rem). Sets minimum, fluid preferred, and maximum cap - no media queries needed.
Avoid VH for fonts
Font sizes in vh become unreadable on short screens. Always wrap in clamp() with rem min/max bounds.
REM to VH Reference Table (Base 16px)
| REM | PX | VH (768px) | VH (900px) | VH (1080px) |
|---|---|---|---|---|
| 0.5rem | 8px | 1.042vh | 0.889vh | 0.741vh |
| 1rem | 16px | 2.083vh | 1.778vh | 1.481vh |
| 2rem | 32px | 4.167vh | 3.556vh | 2.963vh |
| 3rem | 48px | 6.250vh | 5.333vh | 4.444vh |
| 5rem | 80px | 10.417vh | 8.889vh | 7.407vh |
| 10rem | 160px | 20.833vh | 17.778vh | 14.815vh |