EM  to  VW Converter

Conversion Guide

1. Convert em to px (multiply by parent element font size). 2. Convert px to vw. Example: For 1920px viewport, 1em = 16px = 0.833vw

Conversion Settings
This conversion uses parent font size of 16px and viewport width of 0px.
EM to VW Conversion Table
EMVWActions
10.0083
20.0167
30.025
40.0333
50.0417
100.0833
150.125
200.1667

Frequently Asked Questions

Basics

What is EM?

The em unit creates sizes that adapt to their parent element's font size - like a family inheritance system for measurements. When you use 1em, you're saying 'make this the same size as my parent's font'. Using 2em means 'make this twice my parent's font size'. This makes em units perfect for creating harmonious, scalable designs.

Understanding the EM Unit in CSSParent Elementfont-size: 16px (browser default)1em= 16px1.5em= 24px(16px × 1.5)0.5em= 8px(16px × 0.5)EM units are relative to the parent element's font size
I set my element to 1.5em but it's bigger than expected. What's happening?
Em units cascade - if your parent element is already 1.2em, then 1.5em will actually be 1.5 times that increased size. This compound effect is both powerful and sometimes tricky to manage.
Should I use em for padding and margins too?
Yes! Using em for padding and margins helps maintain proportional spacing as font sizes change. For example, button padding of 1em will grow naturally with the button's text size.
My nested elements keep getting bigger and bigger with em. Help!
This is the cascading effect of em units. Each nested element multiplies the parent's size. Consider using rem for deeper nested elements or reset sizes at specific levels if this isn't desired.
When should I use em vs rem vs px?
Use em when you want elements to scale with their parent's font size (like component internals), rem when you want scaling based on root font size (like headers), and px for truly fixed sizes (like borders).

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 EM to VW?

To convert EM to VW, use the following formula:

(em * parent font size / viewport width) * 100