ZenovayTools

Em/Px Converter

Convert between CSS units: px, em, rem, pt, and %. Set your base font size and see all conversions instantly with a quick reference table.

Base Font Size

px(browser default: 16px)

Convert a Value

px
16
em
1
rem
1
pt
12
%
100

Text Preview

The quick brown fox

Previewing at 16px

Quick Reference TableBase: 16px

pxemrempt%
80.50.5650%
100.6250.6257.562.5%
120.750.75975%
140.8750.87510.587.5%
161112100%
181.1251.12513.5112.5%
201.251.2515125%
241.51.518150%
281.751.7521175%
322224200%
362.252.2527225%
402.52.530250%
483336300%
644448400%
724.54.554450%
966672600%

All conversions happen entirely in your browser. No data is sent to any server.

How to Use Em/Px Converter

  1. 1Set your base font size (default 16px).
  2. 2Enter a value and select the input unit.
  3. 3See conversions to all other CSS units instantly.
  4. 4Use the reference table for common font sizes.
Zenovay

Privacy-first analytics for your website

Understand your visitors without invasive tracking. GDPR compliant, lightweight, and powerful.

Explore Zenovay

Frequently Asked Questions

What is the difference between em, rem, and px?
px (pixels) is an absolute unit — 16px always renders as 16 pixels regardless of context. em is a relative unit based on the font-size of the current element: if an element has font-size: 20px, then 1em = 20px within that element, so child elements using em inherit and compound that size. rem (root em) is also relative, but always based on the root <html> element font-size (typically 16px by default in browsers), making it predictable and non-compounding. Use px when you need fixed, precise sizes (borders, shadows). Use rem for scalable typography and layout. Use em when you want spacing to scale relative to the element's own font size.
When should I use each CSS unit?
px: borders, box-shadows, media query breakpoints, images with exact pixel dimensions, fine details that should not scale. rem: font sizes, spacing (padding/margin), layout widths — anything that should scale with the user's browser font-size preference. em: component-level padding and margin that should be proportional to the component's text size (e.g. button padding that scales with button font size), letter-spacing, line-height. pt: primarily for print stylesheets — 1pt = 1/72 inch. %: fluid layouts, widths relative to a parent container, responsive font scaling with viewport units.
What is the default base font size, and can I change it?
Most browsers default to 16px for the root font size. This means 1rem = 16px and 1em = 16px at the root level. However, users can change this in browser settings, and developers can set a custom root font size via html { font-size: 18px; } or similar. The "Base Font Size" input in this tool lets you model any custom base. A common pattern is html { font-size: 62.5%; } which sets the base to 10px, making rem math simpler (1.6rem = 16px). Be cautious with this approach as it can override user accessibility settings.
Which units are best for responsive and accessible design?
rem is generally the best choice for responsive, accessible typography and spacing. Because rem scales with the user's preferred base font size, text and layout will correctly enlarge when a user increases their browser's default font size — this is critical for accessibility (WCAG 1.4.4 requires text to be resizable up to 200% without loss of content). Avoid px for font sizes in accessible designs. em is useful for components where everything should scale together. For fluid layouts, combine rem with CSS clamp() for fluid typography: font-size: clamp(1rem, 2.5vw, 2rem).
What are the accessibility considerations for CSS units?
WCAG 2.1 Success Criterion 1.4.4 (Resize Text, Level AA) requires that text can be resized up to 200% without loss of content or functionality. Using px for font sizes bypasses the user's browser font-size preference, failing this criterion. rem and em respect the user's settings. Additionally, avoid relying on viewport units (vw, vh) alone for text sizes — very small viewports can make text too tiny. Use media queries or CSS clamp() to set a minimum. For users who need larger text (low vision, dyslexia), rem-based layouts ensure that increasing the browser default font size also scales spacing and container sizes, preventing overflow and horizontal scrolling.