PX to EM Converter (Default 16px)
PX to EM:
Formula: (Pixel Value) / (Base Font Size) = EM value
Example: 32px / 16px = 2 EM
ecommerce hosting
Build Great Stores,
Grow Your Sales
Grow Your Sales
- Incredibly Fast Store
- Sales Optimization
- Enterprise-Grade Security
- 24/7 Expert Service
From $4.99

ecommerce hosting
Build Great Stores, Grow Your Sales
- Incredibly Fast Store
- Sales Optimization
- Enterprise-Grade Security
- 24/7 Expert Service
From $4.99
Elementor AI
Discover your New Superpowers
- Prompt your Code & Add Custom Code, HTML, or CSS with ease
- Generate or edit with AI for Tailored Images
- Use Copilot for predictive stylized container layouts
Start Free Trial
No Credit Card Required.

Elementor AI
Discover your New Superpowers
- Prompt your Code & Add Custom Code, HTML, or CSS with ease
- Generate or edit with AI for Tailored Images
- Use Copilot for predictive stylized container layouts
- Craft or Translate Content at Lightning Speed
Start Free Trial
No Credit Card Required.
Wordpress Hosting
The Fastest Track to a
Top-Performing Website
Top-Performing Website
- Super-Fast Websites
- Enterprise-Grade Security
- Any Site, Every Business
- 24/7 Expert Service
From $2.99

Wordpress Hosting
The Fastest Track to a
Top-Performing Website
Top-Performing Website
- Super-Fast Websites
- Enterprise-Grade Security
- Any Site, Every Business
- 24/7 Expert Service
From $2.99
Pro Website builder
Build Any Type of Website
- Drag & Drop Website Builder, No Code Required
- Over 100 Widgets, for Every Purpose
- Professional Design Features for Pixel Perfect Design
From $4.92

Pro Website builder
Build Any Type of Website
- Drag & Drop Website Builder, No Code Required
- Over 100 Widgets, for Every Purpose
- Professional Design Features for Pixel Perfect Design
- Marketing & eCommerce Features to Increase Conversion
From $4.92
site mailer
Improve Your Email Deliverability
- Ensure Reliable Email Delivery for Your Website
- Simple Setup, No SMTP Configuration Needed
- Centralized Email Insights for Better Tracking
Try It For Free

site mailer
Improve Your Email Deliverability
- Ensure Reliable Email Delivery for Your Website
- Simple Setup, No SMTP Configuration Needed
- Centralized Email Insights for Better Tracking
Try It For Free
PX to EM Conversion Table
Pixels (px) | EM |
---|---|
8 | 0.5 |
12 | 0.75 |
16 | 1 |
20 | 1.25 |
24 | 1.5 |
32 | 2 |
CSS Units: Pixels vs. EMs
- Pixels (px): Pixels are absolute units in CSS. They represent a fixed size on the screen, regardless of device or screen resolution. Using pixels offers precise control over element sizes.
- EMs (em): EMs are relative units. Their size depends on the font size of their parent element. The default font size in most browsers is 16px, so 1em is initially equal to 16px. EMs are useful for creating scalable and responsive designs.
Why Convert PX to EM?
- Accessibility: Users can resize text in their browsers. Designs using EMs will scale proportionally with these text size adjustments, making them more accessible to users with visual impairments.
- Responsiveness: EMs help create layouts that adapt smoothly to different screen sizes. Since EMs are based on font sizes, elements will resize naturally as the viewport (the visible area of a website) changes.
- Flexibility: Nested elements using EMs allow you to control the sizing relationships throughout a design easily. Altering the base font size predictably impacts all elements using EMs.
The Conversion Formula
To convert pixels to EMs, use the following formula:
EMs = Pixels / Target Font Size (in pixels)
Example:
If you want to convert 24px to EMs, and your base font size is 16px (standard default):
- EMs = 24px / 16px = 1.5em
Important Note: In more complex layouts, if the parent element itself has its font-size set using EMs, calculations become more involved since nested EMs are relative to their immediate parent.
Practical Considerations
- Base Font Size: It’s common to set a base font-size on the html or body element. All EM calculations are then based on this value.
- Mixing Units: While EMs promote adaptability, a mix of px and EMs is often used for finer control in certain situations.
- REM: Another relative unit, REMs, is based on the root font size (usually the html element). They can simplify calculations in complex layouts.
Share
Looking for fresh content?
Get articles and insights from our weekly newsletter.
By entering your email, you agree to receive Elementor emails, including marketing emails,
and agree to our Terms & Conditions and Privacy Policy.