GeekDas

PX to EM Converter

Free online PX to EM converter. Convert pixels to EM units using a customizable parent font size. Enter a value in either field to convert both ways.

What is EM?

EM is a CSS unit relative to the font size of the parent element. Unlike REM (which is relative to the root), EM cascades, nested elements compound their parent's font size. Developers use EM for component-scoped sizing like button padding and spacing that should scale with the element's own font.

Formula

EM = PX ÷ parent font size

With a 16px parent: 32px ÷ 16 = 2em. Enter the actual parent font size of your element below for accurate results.

Calculator

1em = 16px at parent font size 16

Common Conversions (parent 16px)

PXEM
8px0.5em
12px0.75em
14px0.875em
16px1em
24px1.5em
32px2em

Frequently Asked Questions

Divide the pixel value by the parent element's font size. For example, 32px with a 16px parent = 2em.

Other Tools

PX to REM ConverterConvert pixels to REM units and vice versaREM to PX ConverterConvert REM to pixels and vice versaEM to PX ConverterConvert EM to pixels and vice versaPX to VW ConverterConvert pixels to viewport width unitsVW to PX ConverterConvert viewport width units to pixelsHash GeneratorGenerate MD5, SHA-1, SHA-256, SHA-512 hashesPassword GeneratorCreate strong, secure random passwordsUUID GeneratorGenerate RFC 4122 UUID v4 identifiersJSON FormatterFormat, validate, and minify JSON dataText Case ConverterConvert text to uppercase, lowercase, title caseURL Shortener & LinktreeShorten URLs and create your link-in-bio pageImage ResizerResize JPG, PNG, WebP images in your browser, 100% privateHTML EditorWrite HTML, CSS, JS with live preview in a split-pane editorEpoch ConverterConvert Unix timestamps to dates and back, with live epoch clockMarkdown RendererWrite Markdown and see a live rendered preview with GFM supportColor ConverterConvert between HEX, RGB, and HSL color formats instantlyBase64 Encoder / DecoderEncode text or files to Base64 and decode Base64 strings back to plain textDate Invite MakerCreate a fun "would you go on a date with me?" shareable linkUpwork Proposal FormatterBold and italic key phrases in your Upwork proposal to stand outUTM Link BuilderAdd UTM tracking parameters to any link with presets and clean-upWould You Rather MakerCreate a two-option poll and watch votes roll in live as a shareable linkSpin the WheelRandom decision wheel with presets and a shareable linkCountdown TimerCount down to any event and share the live countdown as a linkAge CalculatorExact age in years, months and days plus next birthday countdownDays Between Dates CalculatorFind the days, weeks and months between two datesWorking Days CalculatorCount business days between two dates and skip holidaysWord & Character CounterCount words and characters, reading time and character limitsEMI CalculatorMonthly loan EMI, total interest and amortization scheduleText Diff CheckerCompare two texts and see added, removed and changed linesFinger PickerPlace fingers on your phone and pick a random winner (mobile only)