Instantly convert REM to VW and VW to REM

A simple and fast tool to convert REM units to VW units and vice versa for your web designs.

px
px
rem
vw

How to Convert REM to VW

 

 

Step 1: Determine the Sizes

You need two values: the font-size of the direct parent element in pixels, and the target viewport width (e.g., 1920px for a desktop design).

Step 2: Use the Conversion Formula

The formula is: `(REM Value * Parent Font Size) / (Viewport Width / 100)`.

Result in VW = (REM * Parent PX) / (Viewport Width * 0.01)

Step 3: Example Calculation

If you want to convert 4rem to `vw` for a 1920px viewport, and the parent’s font size is 20px, the calculation is:

(4 * 20) / (1920 / 100) = 80 / 19.2 = 4.167

So, 4rem is equal to 4.167vw in this context.

Common REM to VW Reference

A quick reference table based on the parent font size and viewport width set above.

REM VW
0.5rem 0.4167vw
0.75rem 0.625vw
1rem 0.8333vw
1.25rem 1.0417vw
1.5rem 1.25vw
2rem 1.6667vw
2.5rem 2.0833vw
3rem 2.5vw
4rem 3.3333vw
5rem 4.1667vw

REM to VW Converter Information

 

Understanding REM Units

The `rem` unit stands for “root em”. It is relative only to the font-size of the root (“) element. This provides a stable and predictable unit for sizing that scales consistently across your entire application based on user preferences.

Understanding VW Units

The `vw` unit stands for “viewport width”. It is a relative unit where 1vw is equal to 1% of the browser’s viewport width. This makes it incredibly powerful for creating fluid layouts and typography that scale smoothly as the user resizes their browser window.

Why Convert REM to VW?

Converting `rem` to `vw` is useful when you want to make a locally-scaled element (`rem`) responsive to the overall viewport width. This is helpful for:

  • Fluid Typography: You can create text that scales relative to its parent, but also make it fluid across different screen sizes by converting its value to `vw`.
  • Responsive Components: For components whose size is defined in `em`, converting to `vw` can help ensure they fit well within a larger, fluid grid system.
  • Complex Layouts: In situations where you have nested `rem` units, converting to a stable `vw` unit can simplify your layout logic and prevent unexpected scaling issues.