Typography Converter

Convert between typography units. Convert pixels to rem, em, pt, and percentage. Calculate responsive font sizes.

Pixels16 px
REM1 rem
EM1 em
Points12 pt
Percentage100 %
Viewport Width0.833 vw

Font Preview

The quick brown fox jumps over the lazy dog

16px
Pixels
1rem
REM
12pt
Points
100%
Percent

Typography Scale Generator

Common Typography Conversions

PixelsREMEMPointsPercent
10px0.625rem0.625em7.5pt62.5%
12px0.75rem0.75em9pt75%
14px0.875rem0.875em10.5pt87.5%
16px1rem1em12pt100%
18px1.125rem1.125em13.5pt112.5%
20px1.25rem1.25em15pt125%
24px1.5rem1.5em18pt150%
32px2rem2em24pt200%
48px3rem3em36pt300%
64px4rem4em48pt400%

About Typography Units

Pixels (px)

Pixels are an absolute unit in CSS. They provide a fixed size regardless of the parent element or root font size. While precise, they do not scale with user preferences and can cause accessibility issues.

REM (Root EM)

REM units are relative to the root element (html) font size. If the root font size is 16px, 1rem equals 16px. REM is ideal for responsive typography as it respects user browser settings and scales consistently.

EM

EM units are relative to the font size of the parent element. They compound when nested, which can be both powerful and tricky. 1em equals the current font size of the element.

Points (pt)

Points are traditionally used in print design. 1 point equals 1/72 of an inch. While supported in CSS, points are generally better suited for print stylesheets than screen displays.

Percentage (%)

Percentage units for font-size are relative to the parent element. 100% equals the parent font size. Like em, percentages compound when nested.

Viewport Width (vw)

VW units are relative to 1% of the viewport width. They create truly responsive typography that scales with screen size. Often used with clamp() for fluid typography.

Key Conversion Formulas

  • PX to REM: rem = px / base-font-size
  • REM to PX: px = rem x base-font-size
  • PX to PT: pt = px x 0.75 (at 96 DPI)
  • PT to PX: px = pt x 1.333 (at 96 DPI)
  • PX to VW: vw = (px / viewport-width) x 100