REM  to  VW Converter

Conversion Guide

1. Convert rem to px (multiply by root font size, typically 16px). 2. Convert px to vw using viewport width. Example: For 1920px viewport, 1rem = 16px = 0.833vw

Conversion Settings
This conversion uses root font size of 16px and viewport width of 0px. Results will vary with screen size.
REM to VW Conversion Table
REMVWActions
10.0083
20.0167
30.025
40.0333
50.0417
100.0833
150.125
200.1667

Frequently Asked Questions

Basics

What is REM?

The rem (root em) unit is a relative unit that's always based on the font-size of the root element (html). This makes it powerful for creating consistent, scalable layouts that respect user preferences. Unlike em units which compound in nested elements, rem always refers back to the root font-size.

Root Element (html)font-size: 16px (default)1rem = 16px"Normal text size"2rem = 32px"Twice the root size"0.5rem = 8px"Half the root size"
Why should I use rem instead of pixels?
REM units provide better accessibility by respecting user font size preferences, maintain consistent scaling across the site, and simplify responsive design. Unlike pixels, rem units scale proportionally when users change their browser's font size settings.
How do I calculate rem values from pixels?
To convert pixels to rem, divide the desired pixel value by the root font size (typically 16px). For example: 32px ÷ 16px = 2rem. Many code editors and dev tools can do this calculation automatically.
What's the difference between rem and em units?
While both are relative units, em is relative to the font-size of the current element or its closest parent with a defined font-size. rem is always relative to the root element, making it more predictable for layout and preventing compound scaling issues.
When should I use rem vs em units?
Use rem for consistent spacing, layout and general typography. Use em when you want elements to scale relative to their parent's font size, like padding in buttons or line-height in paragraphs.
How can I debug rem calculations?
Most browser dev tools can show both rem and pixel values. You can also set a more convenient root font-size (like 10px) to make calculations easier: html { font-size: 62.5%; } (making 1rem = 10px)

What is VW?

The viewport width (vw) unit is relative to 1% of the viewport's width. 100vw equals the full viewport width.

Viewport50vw width
What is the viewport?
The viewport is the visible area of the web page on your device's screen.
When should I use vw?
Use vw for elements that should scale relative to the screen width, like full-width layouts or responsive typography.

Conversion

How to convert REM to VW?

To convert REM to VW, use the following formula:

(rem * root font size / viewport width) * 100