Typography
Typography converter online. Convert px, pt, em, rem for fonts. Line-height calculator with font preview—free type scale tool.
Font Size
Base Font Size (for em/rem calculations)
Font Size Units
16Absolute screen unit
12Print unit (1pt ≈ 1.333px)
1Relative to parent (16px)
1Relative to root (16px)
Size Preview
Line Height Calculator
1.524pxThe quick brown fox jumps over the lazy dog. Pack my box with five dozen liquor jugs.
Common Type Scale
Typography Tips
rem — Use for consistent spacing and sizing across your site.
em — Use for component-specific sizing that should scale with local font size.
Unitless line-height — Recommended (e.g., 1.5), scales with font size.
Features
- Convert font sizes (px, pt, em, rem)
- Line-height calculator with preview
- Type scale generator
- Golden ratio typography
- Vertical rhythm calculator
- Font preview with custom text
Common Use Cases
- Convert print typography (pt) to web (px, rem)
- Calculate optimal line-height for readability
- Generate harmonious type scales
- Convert between design tool units and CSS
- Ensure consistent vertical rhythm
Typography Units and Scales
Typography uses multiple unit systems, and understanding conversions is crucial for translating designs from print to web and maintaining consistency across platforms.
Typography Units:
- Pixel (px): Fixed size, easy to understand but doesn't scale with user settings
- Point (pt): Print unit (1/72 inch), used in design tools. 12pt ≈ 16px
- Em: Relative to parent font size, useful for component-level scaling
- Rem: Relative to root (html) font size, best for consistent scaling
Line-Height Best Practices:
- Body text: 1.5-1.6× font size for optimal readability
- Headings: 1.2-1.3× font size (tighter leading)
- Short lines (<45 chars): 1.5 line-height
- Long lines (>75 chars): 1.6-1.8 line-height for easier tracking
- Small text (<14px): Higher line-height (1.6-1.8)
Type Scales:
- Modular scale: Multiply base size by ratio (1.25, 1.333, 1.5, 1.618)
- Golden ratio: 1.618× each step (16px → 25.9px → 41.9px)
- Perfect fourth: 1.333× (16px → 21.3px → 28.4px)
- Major third: 1.25× (16px → 20px → 25px → 31.25px)
Vertical Rhythm:
Maintain consistent spacing by aligning text baselines to a grid. Set a baseline (e.g., 8px), then ensure all line-heights, margins, and padding are multiples of that baseline.
Examples
16px, line-height: 1.5 (24px)32px, line-height: 1.25 (40px)16px → 20px → 25px → 31pxFrequently Asked Questions
💡 Tips
- Standard type scale for headings: h1=2.5rem (40px), h2=2rem (32px), h3=1.75rem (28px), h4=1.5rem (24px)
- Use unitless line-height (1.5) instead of px—it scales with font size changes
- Google Fonts renders at 72 DPI, so 12pt in Figma = 12px in CSS, but "true" 12pt = 16px at 96 DPI
- For vertical rhythm, set root font to 16px, line-height 1.5 = 24px baseline, use 8px spacing grid