Unit Converter
VW to REM Converter
Resolve a vw length to rem at a specific CSS viewport width and root font size.
VW to REM Converter examples
| Input | Expected result |
|---|---|
| 10 vw, 1440 px viewport, 16 px root | 9 rem |
| 10 vw, 375 px viewport, 16 px root | 2.34375 rem |
| 10 vw, 1440 px viewport, 20 px root | 7.2 rem |
| 100 vw, 320 px viewport, 16 px root | 20 rem |
Supported units & limits
Accepts signed decimal lengths, zero and scientific notation. Viewport width and root font size must be strictly positive. Enter numbers without unit suffixes. The 1440 px width and 16 px root defaults are examples. Results match a single chosen context. Plain vw uses the large viewport basis in modern CSS; dynamic viewport variants and automatic stylesheet inspection are not included. Unrepresentable results are rejected.
Common mistakes
There is no context-free vw-to-rem multiplier. A fixed rem length changes with root font size, while vw changes with viewport width. Replacing one with the other matches at the supplied reference only. Use the CSS viewport width rather than the device’s hardware resolution, and use the root font size rather than a nested parent’s.
Privacy
Conversions run in your browser. This site does not upload or store the values you enter. We use Google Analytics, loaded through Google Tag Manager, to count page visits and see which tools are used; Google may set cookies for this. The hosting server may keep standard access logs when you load a page.
Conversion guide
Compare fluid and root-relative sizing
Choose a reference viewport and read its computed html font size. Enter both here with the vw value. Compare the rem result at another viewport before replacing the declaration. If you need bounded fluid sizing, use a clamp expression rather than assuming a single rem value preserves vw behavior. Try two viewport widths in the VW to REM Converter to see how a vw size compares with a fixed rem scale across devices.
VW to REM Converter FAQ
Can I replace vw with rem without changing layout behavior?
They match at the chosen viewport width and root font size, but do not generally scale the same way. Test your intended responsive behavior after changing units.
Why are two reference values required?
vw depends on the viewport width and rem depends on the root font size. Both are needed to compare the lengths.
What if my root font size changes at breakpoints?
Recalculate using the root size and viewport width for each context you want to compare. The tool does not evaluate media queries.