100% local processing — your files and data never leave this browser. No uploads, no server storage.

OnboxTools

Free · Browser-only · No upload

Typography Converter

px · pt · rem · em · CSS typographic units

Free typography converter for developers and designers: convert px to rem, pt, em, picas, inches, and millimeters in one step. Configure root and parent font sizes for accurate relative units — essential whether you set a neutral sans body or scale up cursive typography and handwriting typography display type.

Not a typography text generator or typography font generator — this tool handles typographic unit math so your CSS, Figma handoff, and print specs stay aligned. Instant results, no upload.

rem1
em1
pt12
pc1
in0.1667
mm4.2333
percent100

Mathematical / technical context

CSS absolute reference (screen): 1 in = 96 px = 72 pt = 6 pc.

rem = px / root · em = px / parent · pt = px × 0.75 · % = (px / root) × 100

Step-by-step practical examples

Body text: 16px at 16px root = 1rem = 12pt = 100%.

Heading: 32px = 2rem = 24pt. Inside that heading, a 14px label = 0.875em (parent 32px).

Cursive headline: Design comp 22pt → 22 ÷ 0.75 = 29.33px 1.833rem at 16px root.

Typographic unit reference table

FromToResult
16pxrem (16 root)1rem
24pxrem1.5rem
24pxpt18pt
12ptpx16px
32pxem (32 parent)1em
14pxem (32 parent)0.4375em
1rempx (16 root)16px
1inpx (96 DPI)96px
1pcpx16px
20px% (16 root)125%
22ptpx29.33px
10px root20px2rem

Complete guide to typography & CSS unit conversion

Typography — type design, sizing, and readable text

Typography is the art and technique of arranging type: choosing typefaces, setting sizes, adjusting line height, and controlling spacing so text is legible and visually balanced. Every headline, paragraph, and button label on the web depends on typographic decisions — even when the font itself is a system default.

This typography converter handles the measurement side of that work. Enter a value in pixels and instantly see equivalents in rem, em, points, picas, inches, millimeters, and percent — the units designers and CSS authors juggle daily. It does not replace a typeface library; it answers "what is 18px in rem?" so your stylesheet stays consistent across breakpoints and accessibility settings.

Typography converter vs text generator vs font generator

Search intent splits three ways. A typography text generator or online typography text generator often means a tool that outputs decorative Unicode characters, stacked social-media fonts, or preview text in fancy styles. A typography font generator may suggest AI pairing tools or Google Fonts browsers.

This page is a unit converter for typographic measurements — px ↔ pt ↔ rem ↔ em — not a glyph swapper. That distinction matters: when you pick a cursive or handwriting face in CSS, you still set font-size: 1.125rem or 18px. Use the calculator above for that math; use a font catalog or design app to choose the actual typeface.

If you landed here looking for an online typography text generator that rewrites letters into bold or script Unicode, try a dedicated fancy-text tool instead. If you need precise CSS sizing for any font — serif, sans, mono, script — you are in the right place.

px, rem, em, and pt — core typographic units

Web typography runs on relative and absolute units:

  • px (pixels): CSS reference pixels; 1px is 1/96 of an inch at the standard 96 DPI mapping.
  • rem: Relative to the root html font size (browser default 16px). Scales when users change root size — preferred for accessible layouts.
  • em: Relative to the parent element's font size. Nested components compound — useful for buttons inside scaled headings.
  • pt (points): Print tradition: 72 pt = 1 inch in CSS. 1 px = 0.75 pt at the 96 DPI reference.

Example at 16px root: 24px = 1.5rem = 18pt = 150%. Change the root field above if your design system uses 10px or 62.5% tricks.

Cursive typography — script fonts and sizing

Cursive typography uses connected, flowing letterforms — think formal scripts, wedding invitations, or brand marks with swashes. Cursive faces (e.g. Brush Script, Pacifico, Dancing Script) often need larger body sizes than neutral sans-serifs because thin strokes and loops disappear below ~16px on screens.

When setting font-family to a cursive stack, convert your design spec with this tool: a comp labeled 22pt becomes 29.33px (22 ÷ 0.75), then 1.833rem at a 16px root. Script capitals with ascenders may need extra line-height — typographic sizing is only the first step.

Cursive is decorative; reserve it for short headlines or accents. Long paragraphs in script type fail readability tests — pair cursive display type with a plain body face sized in rem.

Handwriting typography — casual script on web and print

Handwriting typography mimics pen or marker strokes — looser than formal cursive, common in notes apps, education sites, and informal brands. Fonts like Caveat, Indie Flower, or Patrick Hand read as personal but still require explicit typographic spacing: size, line-height, and letter-spacing.

Handwriting fonts vary wildly in x-height. A 16px setting in one face may look tiny in another. Designers often spec handwriting headlines at 24–32px (1.5–2rem) while keeping body copy at 1rem in a neutral sans. Use the parent-size field when converting nested em values inside a scaled heading block.

Neither cursive nor handwriting typography changes the conversion formulas — px, rem, and pt math stays identical. The difference is optical: always preview script sizes in context, not from numbers alone.

Typographic hierarchy — headings, body, and captions

A coherent typographic scale uses consistent ratios. A common modular scale from 16px root:

  • Caption / small: 12px — 0.75rem — 9pt
  • Body: 16px — 1rem — 12pt
  • H3: 20px — 1.25rem — 15pt
  • H2: 24px — 1.5rem — 18pt
  • H1: 32px — 2rem — 24pt

Building design tokens? Convert once here, paste rem into CSS custom properties, and every component inherits the same rhythm. Percent output (relative to root) helps when migrating legacy stylesheets that used font-size: 87.5% on body.

CSS reference: 96 DPI, inches, and print

CSS defines 1 inch = 96 px = 72 pt. Physical print DPI (150, 300) is separate — a 12pt Word font does not automatically equal 12pt in browser CSS. The DPI field above converts px to inches and millimeters using your chosen reference (default 96 for screen CSS).

rem = px ÷ rootFontSize · em = px ÷ parentFontSize · pt = px × 0.75 · pc = px × 0.0625

Picas (pc) appear in editorial and InDesign workflows: 1 pica = 12 points = 16px in CSS terms. If a print spec says 11pt body, that is 14.67px — enter 14.67 in the px field to see rem equivalents for your web companion page.

Workflow tips for developers and designers

Start designs in rem, not px, when accessibility matters — users who bump browser text size should see your layout grow predictably. Keep px for hairline borders and shadows where sub-pixel precision helps.

When handing off from Figma or Sketch, note whether the file uses px or pt. Convert every text style through this typography converter before writing Tailwind classes or CSS modules. For script or handwriting display type, add 2–4px (0.125–0.25rem) over the sans equivalent after conversion — optical adjustment beats raw parity.

All calculations run locally in your browser; no font names or project values leave your device.

Detailed guide

Converter, not generator

Typography text generators change characters; this tool converts sizes. Pick fonts elsewhere, convert px and rem here.

Script fonts need headroom

Cursive and handwriting typefaces often need 1–2 steps larger on the scale than geometric sans-serifs at the same px value — preview after converting.

More Unit Converters

🌾
Area Converter
🎨
Color Format
💾
Data Storage & Transfer
Fuel & Gas Converter
🥄
Kitchen & Cooking
📏
Length & Distance
🔢
Number Base
📄
Paper Size
🏎️
Speed
🌡️
Temperature
🔤
Typography Converter
🧪
Volume
⚖️
Weight & Mass

Browse by category

Common questions

Typography converter FAQ

What is a typography converter?

A tool that converts font-size units — px, pt, rem, em, pc, in, mm, and % — using CSS standard ratios. Enter pixels and read every equivalent instantly.

Is this a typography text generator?

No. Text generators output styled or Unicode-transformed characters. This converter handles measurement math for CSS and design specs, including sizing cursive or handwriting fonts.

Is this a typography font generator?

No. It does not create or download fonts. Use Google Fonts or a design app for typeface choice; use this tool to convert px ↔ rem ↔ pt for any font you pick.

How do I convert px to rem?

Divide px by root font size. Default root is 16px, so 24px = 1.5rem. Adjust the root field if your project uses a different base.

What is the px to pt formula?

At CSS 96 DPI: pt = px × 0.75. Example: 16px = 12pt.

What size should cursive typography use on the web?

Script and cursive faces usually need 16px minimum for body accents and 24px+ for headlines. Convert your comp values here, then preview in the browser.

Em vs rem — which should I use?

rem for global scale (relative to html). em for components that should scale with their parent — nested buttons, icon+label pairs.

Why is browser 16px the default root?

Historical compatibility and accessibility. rem based on 16px respects user font-size preferences when they change browser settings.

Does handwriting typography use different units?

No — handwriting fonts use the same px, rem, and pt units. They often need larger sizes for legibility because of irregular stroke width.

Is data uploaded?

No. All conversions run locally in your browser.