OhMyCalc

Typography Units Converter (pt · mm · px · em · pica)

Convert any typography measurement between points, millimetres, pixels, em/rem and picas at 96 DPI using a configurable rem base.

How to Use the Typography Units Converter (pt · mm · px · em · pica)

  1. Enter the source value.
  2. Pick the source unit.
  3. Set the rem base (default 16 px).
  4. Click Calculate to see all five converted units.

使用场景

公式

1 pt = 0.35278 mm. 1 px = 0.75 pt (at 96 DPI). 1 em = base px. 1 pica = 12 pt.

常见问题

Why is 1 px = 0.75 pt?
CSS defines a reference pixel as 1/96 of an inch; a point is 1/72 of an inch. The ratio 72/96 = 0.75.
Is 16 px always the rem base?
It is the default in every major browser, but it can be overridden via html { font-size } for accessibility or branding. Change the base_px field accordingly.
Em and rem — same conversion?
Yes, against the root font size. In nested CSS em is relative to the parent, not the root — keep that in mind when using the result in context.