Skip to content
Email signature generator update - check out new features tools
Arteon - company logo
#MadeWithNext.js
Arteon logo

Free online tools for web developers, designers, and marketers.

Tools

  • Online image editor
  • Favicon generator
  • Meta title & description checker
  • Word & character counter
  • Lorem Ipsum Generator
  • Email signature generator
  • Color contrast checker
  • Image color extractor
  • Color palette generator

Tools

  • Free QR code generator
  • pt to px
  • rem to px
  • em to px
  • cm to px
  • mm to px
  • inches to px
  • DPI to PPI
  • HEX to RGB

Tools

  • RGB to HSL
  • RGB to CMYK
  • bytes to KB/MB/GB
  • Unix to date
  • DEC to BIN
  • DEC to HEX
  • Mbps to MB/s
  • vw to px
  • Tailwind CSS spacing to px

Tools

  • JPG to WebP
  • PNG to WebP
  • WebP to JPG
  • WebP to PNG
  • PNG to JPG
  • JPG to PNG
  • SVG to PNG
  • BMP to JPG
  • JPG to AVIF

Legal documents

  • Privacy Policy
  • Terms of Service
© 2026 Arteon. All rights reserved.#MadeWithNext.js

Convert EM to pixels

Convert CSS em units to pixels based on your base font size. Enter a value and the result appears instantly.

  1. /Tools
  2. /em to px
Loading tool editor...
EM to pixels converter – Arteon

When do you need to convert em to px?

The CSS em unit is relative to the font size of the parent element. If the parent font size is 16px (browser default), then 1em = 16px, 1.5em = 24px, 2em = 32px.

Em units are commonly used in responsive web design for typography, spacing, and layout. Converting to pixels helps understand the actual rendered size.

Unlike rem (which is relative to root), em compounds: if a parent is 1.5em and a child is 1.5em, the child renders at 1.5 × 1.5 = 2.25× the base size.

All calculations run locally in your browser — nothing is sent to any server.

How to use the converter?

  1. 1. Enter a value

    Type a number in the input field. You can use a period or comma as the decimal separator.
  2. 2. Read the result

    The conversion result appears instantly in the field next to it – no clicking required.
  3. 3. Copy or reverse

    Click Copy result or use the Reverse button to convert in the opposite direction.

When is this converter useful?

  1. Typography

    Line-height 1.5 em = 150% of the parent font size.
  2. Buttons

    Padding in em scales with the button's text size.
  3. Components

    Proportional dimensions relative to text in UI components.
  4. CSS media queries

    Breakpoints in em are resilient to base font-size changes.

What makes this converter different?

  1. Complete privacy

    All calculations run locally in your browser. No data is sent to any server.
  2. Real-time results

    The result updates instantly as you type – no need to click any button.
  3. Bidirectional conversion

    The Reverse button lets you convert in both directions with one click.
  4. Reference table

    A ready-made table with commonly converted values and contextual descriptions.

How does em to px conversion work?

px = em × parent font size. By default, the browser base font size is 16px.

Em compounds through the DOM tree. If body is 16px and a div is 1.5em (24px), a paragraph inside at 1.5em will be 1.5 × 24 = 36px.

For predictable sizing, consider using rem units instead — they always reference the root element font size.

Practical tips

  • Default browser font: 16px. 1em = 16px, 0.875em = 14px, 1.25em = 20px.
  • Common heading sizes: h1 = 2em (32px), h2 = 1.5em (24px), h3 = 1.17em (18.7px).
  • Padding/margin in em scales with font size — useful for responsive components.
  • 62.5% trick: setting html font-size to 62.5% makes 1em = 10px for easier math.

em vs px vs rem

em vs px vs rem
Featureempx
ReferenceParent font sizeFixed pixel
CompoundsYes (nests)No
ResponsiveYesNo
AccessibilityRespects user settingsFixed size
PredictabilityContext-dependentAlways consistent

em

  • Reference
    Parent font size
  • Compounds
    Yes (nests)
  • Responsive
    Yes
  • Accessibility
    Respects user settings
  • Predictability
    Context-dependent

px

  • Reference
    Fixed pixel
  • Compounds
    No
  • Responsive
    No
  • Accessibility
    Fixed size
  • Predictability
    Always consistent

Convert other units to px

pt to pxrem to pxcm to pxmm to pxinches to pxvw to pxTailwind CSS spacing to px

Explore other unit converters

DPI to PPIHEX to RGBRGB to HSLRGB to CMYKbytes to KB/MB/GBUnix to dateDEC to BINDEC to HEXMbps to MB/s

Frequently asked questions

By default, 1em = 16px (browser default font size). But em is relative to the parent element font size, so it changes based on context.

em is relative to the parent element font size. rem is relative to the root (html) element font size. rem is more predictable because it doesn't compound.

Use em for typography and spacing that should scale with font size. Use px for borders, shadows, and other properties that should stay fixed.

Set html { font-size: 62.5% } to make 1rem/1em = 10px. Then 1.6rem = 16px, 2rem = 20px — easier mental math.

Yes. All calculations run in your browser. No data is sent to any server.

em na px – Arteon

Help us improve our tools

Have an idea, found a bug, or want to suggest a feature? Drop us a message – we respond within 24 hours.