Ems to Pixels
Convert ems to pixels in your browser: 1 em is 16 px.
What this Ems to Pixels does
One em is exactly 16 px — the page multiplies by the factor, it does not estimate.
1 1 em = 16 px (one em is 16 reference pixels; one pixel is 1 reference pixels. Pixels, points and picas are exact: one inch is 96 reference pixels. rem, em and % are computed against the 16px reference, so a rem is 16 pixels here.). The page multiplies the value by the from-unit factor in px and divides by the to-unit factor. The result prints to six decimal places with trailing zeros trimmed, and the same unit in both selects returns the value unchanged.
Neighbour table
| em | px |
|---|---|
| 1 | 16 |
| 2 | 32 |
| 5 | 80 |
| 10 | 160 |
Rounding
Six decimal places, trailing zeros trimmed: 1 em prints as 16 px. The table above is computed from the same factor, not typed in.
What it refuses
A blank box, anything that is not a number, and any unit from another dimension — a physical length like metres or a viewport unit like vw. A refusal names the fix instead of guessing.
How to use it
Ems to Pixels: paste the value into the box above, set From unit (default "em") and To unit (default "px"), and press Run to get the converted pixels below.
Worked example
Input:
1
Output:
16
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads value and returns converted pixels; reloading the page discards both.
One em is exactly 16 px — the page multiplies by the factor, it does not estimate.
1 em = 16 px (one em is 16 reference pixels; one pixel is 1 reference pixels. Pixels, points and picas are exact: one inch is 96 reference pixels. rem, em and % are computed against the 16px reference, so a rem is 16 pixels here.). The page multiplies the value by the from-unit factor in px and divides by the to-unit factor.
The page runs entirely in the browser: nothing is posted, stored or timed.
Exact factor, stated once
one em is 16 reference pixels; one pixel is 1 reference pixels. Pixels, points and picas are exact: one inch is 96 reference pixels. rem, em and % are computed against the 16px reference, so a rem is 16 pixels here.. Results print to six decimal places with trailing zeros trimmed, so the neighbour table below is computed from the factor, not typed in.
Picking the same unit in both selects returns the value unchanged, which is the identity the round trip is measured against.
- em to px: 1 em = 16 px
- Six decimal places, trailing zeros trimmed
- Same unit in both selects returns the value unchanged
How to use this converter
Paste the value, set From unit to em and To unit to px, and press Run. The converted pixels appears below with its factor, so the answer is checkable.
A blank box, a non-number, or a unit from another dimension is refused with the fix named: a physical length like metres or a viewport unit like vw.
What to Expect
Best for
- Turning ems into pixels without reaching for a calculator
- Checking a CSS length figure against its exact factor
Not ideal for
- Converting a different dimension — a physical length like metres or a viewport unit like vw
- Replacing the domain page that owns the whole CSS length table
What this tool keeps
- The exact factor: 1 em = 16 px
- The value unchanged when both selects name em
What may need cleanup
- Six places can hide a seventh that matters for machining tolerances
- A pasted value with a unit suffix ("em") is refused, not stripped
Common errors
- Typing the unit into the value box instead of the selects
- Reading the reverse direction off this page instead of Pixels to Ems
Example use cases
- Converting ems to pixels for a trip, a recipe or a bill
- Double-checking a conversion quoted without its factor
Sample input
Enter 1 (1 em converts to 16 px).
Sample output
16 px, at six decimal places.
Who this is for
- Anyone converting ems to pixels once
- Anyone checking a CSS length number against its definition
Frequently asked questions
What is the exact factor?
1 em is 16 px (one em is 16 reference pixels; one pixel is 1 reference pixels. Pixels, points and picas are exact: one inch is 96 reference pixels. rem, em and % are computed against the 16px reference, so a rem is 16 pixels here.). The reverse page shows the reciprocal to the same six places.
Does the page convert the other way too?
Yes — Pixels to Ems converts px back to em, and the two agree: 1 em goes to 16 px and back to 1 em.
What if I pick a unit from another dimension?
The page only converts CSS length, so a physical length like metres or a viewport unit like vw is refused with both dimensions named instead of guessed.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.