Instantly convert REM to Viewport Width and Viewport Width to REM.
A simple and fast tool to convert rem values to viewport width units and back again for responsive web design. This canonical page covers both directions to avoid duplicate SEO pages for identical content.
Bases
Configure only the reference values required for this conversion pair.
Conversion
Edit either side, copy any result, or swap the displayed direction.
REM
Viewport Width
Canonical page shared by both directions: REM to VW and VW to REM.
Current conversion chart
A responsive visual curve based on the active direction and current base values.
Current conversion
1.5rem = 1.6667vw
Reverse conversion
1.6667vw = 1.5rem
Convert REM to pixels
Pixels = REM × Root Font Size
Convert pixels to VW
Result = (Pixels / Viewport Width) × 100
Context
- Root font-size (base HTML): 16px
- Viewport width: 1440px
Step 1: Define the relevant context
Confirm the values that influence the conversion. Relative units like REM, EM, VW, VH, and % depend on the root font-size, parent font-size, parent length, or viewport dimensions.
Step 2: Convert the source value into pixels
Normalize the source unit into pixels first. This gives you a consistent base for accurate conversion across all CSS unit types.
Step 3: Convert pixels into the target unit
Once the intermediate pixel value is known, convert it into viewport width using the target formula below.
| REM | Viewport Width |
|---|---|
| 0.25rem | 0.2778vw |
| 0.5rem | 0.5556vw |
| 0.75rem | 0.8333vw |
| 0.875rem | 0.9722vw |
| 1rem | 1.1111vw |
| 1.125rem | 1.25vw |
| 1.25rem | 1.3889vw |
| 1.5rem | 1.6667vw |
| 2rem | 2.2222vw |
| 3rem | 3.3333vw |
| 4rem | 4.4444vw |
| 4.5rem | 5vw |
| 6rem | 6.6667vw |
Understanding REM
The rem unit scales from the root font-size of the document, making it a strong choice for accessible typography and consistent spacing systems.
Understanding Viewport Width
VW units scale with the width of the viewport, which is useful for responsive type, fluid spacing, and layout behavior tied to screen width.
Why convert REM and VW?
- System consistency: Work across design tokens, components, and documentation using a predictable translation between units.
- Responsive control: Compare fixed, relative, and contextual units without guessing how they behave in production layouts.
- SEO-safe structure: This page serves both directions of the same conversion pair to avoid duplicate content and consolidate relevance in one canonical destination.