REM to VW Converter
Convert CSS rem to vw (viewport width) - the key to fluid typography and responsive layouts without media queries. Auto-detects viewport width.
REM ? VW Calculator
Auto-filled from window.innerWidth. Edit to test different viewports.
Result
- vw
Enter values above to convert
Fluid Typography clamp() Formula
font-size: clamp(1rem, Xvw, 2rem);
Formula
1vw = 1% of viewport width. Result varies per screen width.
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 VW Conversion?
The REM to VW converter determines the viewport width equivalent of a CSS rem value. The vw unit represents 1% of the browser viewport's width - the foundation of fluid typography systems where text scales smoothly from mobile to desktop without breakpoints. This tool auto-detects your viewport width and even generates the matching clamp() formula for fluid typography.
Fluid Typography with VW and clamp()
The Modern Fluid Typography Pattern
h1 { font-size: clamp(1.5rem, 2.5vw, 3rem); }
/* Body text: fluid between 1rem and 1.25rem */
body { font-size: clamp(1rem, 1.5vw, 1.25rem); }
clamp(min, preferred, max): Text scales fluidly with viewport between min and max - eliminates font-size media queries entirely.
REM to VW Reference Table (Base 16px)
| REM | PX | VW (1280px) | VW (1440px) | VW (1920px) |
|---|---|---|---|---|
| 0.5rem | 8px | 0.625vw | 0.556vw | 0.417vw |
| 1rem | 16px | 1.250vw | 1.111vw | 0.833vw |
| 1.5rem | 24px | 1.875vw | 1.667vw | 1.250vw |
| 2rem | 32px | 2.500vw | 2.222vw | 1.667vw |
| 3rem | 48px | 3.750vw | 3.333vw | 2.500vw |
| 5rem | 80px | 6.250vw | 5.556vw | 4.167vw |
| 10rem | 160px | 12.500vw | 11.111vw | 8.333vw |
How to Use This Converter for Fluid Typography
Step 1: Convert
Enter your target font size in rem and your design viewport width (e.g., 1440px). The tool gives you the vw equivalent.
Step 2: Set Bounds
Define min (mobile size in rem) and max (desktop size in rem) for your clamp() bounds - these control the fluid range.
Step 3: Use clamp()
Combine: font-size: clamp(min-rem, X.Xvw, max-rem). The tool auto-generates this formula for you.
VW vs Percentage: Key Difference
| Feature | VW | Percentage (%) |
|---|---|---|
| Reference | Always the viewport (browser window) width | Parent element width |
| DOM position | Same value regardless of nesting | Changes based on parent container width |
| Typical use | Fluid typography, hero widths | Column widths, flexible containers |
| Scrollbar | Includes scrollbar width (use dvw to exclude) | Excludes scrollbar |
| 100 units | 100vw = full browser window width | 100% = full parent container width |