Font Size Conversion Calculator

Font size in pixels24.00 px
Points18.00 pt
Em (same as rem at this base)1.5 em
Percent of base150.00%
How this was calculated
  1. CSS font sizes convert through the pixel: points (pt) convert at exactly 4/3 px each, and em, rem and percent are all relative to a base font size (the root or parent size).
  2. The base size here is 16 px, so 1 em = 1 rem = 16 px and 100% = 16 px - every relative unit is anchored to those base pixels.
  3. In points, the size converts at 96/72: 18 pt x 4/3 = 24.00 px.
  4. In the other units that is 18.00 pt, 1.5 em and 150.00% of the base size.

This font size conversion calculator changes a font size from one CSS unit to another, so you can compare a value in points, pixels, em, rem or percent without doing the arithmetic by hand. The core relationship is exact: in CSS, 1 pt is exactly 4/3 px, because CSS fixes 1 inch = 96 px while print points run 72 to the inch. That means 18 pt converts to 24.00 px. Relative units depend on the base size they refer to: 1.25 em on a 16 px base is 20.00 px, and em and rem are only as fixed as the base size they refer to. Percent works the same way: 150% on a 20 px base is 30.00 px, which is 22.50 pt. Enter your value and base size, and the calculator returns the converted size in the unit you choose.

The method behind the calculator follows the CSS specification's own unit definitions, which is why it is the accepted standard for this kind of conversion. Points and pixels are tied together by the fixed 96 px per inch rule, while em, rem and percent are resolved against a stated base size rather than guessed. The calculator also accounts for how those relative units behave in practice: percent and em compound through nesting, while rem always refers to the root element's size, the usual reason layouts drift when the base changes. On this page you will find the formula, step-by-step workings, worked examples and sources, so you can check every result yourself and see exactly how each number was reached.

Worked examples

18 pt to pixels

Primary result: 24.00 px. Full step-by-step working is shown with the result. (18 · Points (pt) · 16 px)

Font size in pixels24.00 px
Points18.00 pt
Em (same as rem at this base)1.5 em
Percent of base150.00%

1.25 em on a 16 px base

Primary result: 20.00 px. Try it with your own numbers in the calculator above. (1.25 · Em · 16 px)

Font size in pixels20.00 px
Points15.00 pt
Em (same as rem at this base)1.25 em
Percent of base125.00%

150% on a 20 px base

Primary result: 30.00 px. Every intermediate value is printed in the worked steps. (150 · Percent (%) · 20 px)

Font size in pixels30.00 px
Points22.50 pt
Em (same as rem at this base)1.5 em
Percent of base150.00%

The five CSS size units

CSS gives you five common ways to write a font size: px, pt, em, rem and percent. They split into two groups. Pixels and points are absolute units, tied to fixed physical or reference measurements. Em, rem and percent are relative units, and their value depends on another size. A font size conversion calculator works by knowing exactly which group a value belongs to and what a relative unit is measured against.

Points are the print unit, and CSS ties them to pixels with an exact ratio. In CSS, 1 pt is exactly 4/3 px, because CSS fixes 1 inch = 96 px while print points run 72 to the inch. That ratio is fixed, not an approximation, so the arithmetic is clean. For example, 18 pt converts to 24.00 px. Pixels, by contrast, are the reference unit CSS itself uses for lengths on screen.

Em and rem both scale with a base size, but they point at different bases. Em is measured against the font size of the element's own context, which is often inherited from a parent. Rem is measured against the root element's size. Neither is truly fixed: em and rem are only as fixed as the base size they refer to. On a 16 px base, 1.25 em is 20.00 px. Change that base and the same 1.25 em produces a different pixel result.

Percent behaves like em in that it is measured against a surrounding size rather than a fixed one. On a 20 px base, 150% is 30.00 px, which is 22.50 pt. Notice how the same size can be written in any of these units once you know the base and the conversion ratio, which is the whole point of a font size conversion calculator.

The practical difference shows up when sizes nest. Percent and em compound through nesting, while rem always refers to the root element's size - the usual reason layouts drift when the base changes. If a parent is set in em and a child is also set in em, the child's size is calculated from the parent's computed size, so each level multiplies the effect. Rem sidesteps that by always reading the root size, which keeps nested elements predictable.

  • px: absolute in CSS terms; the reference unit for screen lengths.
  • pt: absolute; 1 pt is exactly 4/3 px in CSS, since 1 inch = 96 px and print points run 72 to the inch.
  • em: relative; measured against the element's own font-size context, so it compounds through nesting.
  • rem: relative; always measured against the root element's size, so it does not compound.
  • percent: relative; measured against a surrounding size and compounds through nesting like em.
Quick check: 18 pt = 24.00 px, 1.25 em on a 16 px base = 20.00 px, and 150% on a 20 px base = 30.00 px, which is 22.50 pt.

Converting through pixels

Every conversion on this font size conversion calculator passes through pixels, because pixels are the common unit the other values are measured against. In CSS, 1 pt is exactly 4/3 px, because CSS fixes 1 inch = 96 px while print points run 72 to the inch. That single rule turns any point size into pixels: multiply the point value by 4/3. To go the other way, multiply the pixel value by 3/4. Everything else — em, rem, percent — is relative to a base size, so the pixel result depends on what that base happens to be.

Start with a point size. 18 pt converts to 24.00 px. The arithmetic is 18 × 4/3 = 24. Running it backward, a 24 px element is 24 × 3/4 = 18 pt. This direction is fixed: point-to-pixel conversion does not care about the base font size, the parent element or the layout. If you know the point value, the pixel value is settled.

Relative units work differently. 1.25 em on a 16 px base is 20.00 px, because em multiplies the base: 1.25 × 16 = 20. Change the base and the result changes with it; em and rem are only as fixed as the base size they refer to. To go from pixels back to em, divide by the base — 20 px on a 16 px base is 20 ÷ 16 = 1.25 em.

Percent follows the same logic. 150% on a 20 px base is 30.00 px, which is 22.50 pt. The percent step is 1.50 × 20 = 30, and the point step is 30 × 3/4 = 22.50. Going the other way, 30 px on a 20 px base is 30 ÷ 20 = 150%, and 22.50 pt is 22.50 × 4/3 = 30 px. Notice that the point result is only known once the pixel result is known, and the pixel result is only known once the base is known.

This is where conversions between relative units get tricky. Percent and em compound through nesting, while rem always refers to the root element's size — the usual reason layouts drift when the base changes. A 1.25 em value inside a parent that is already larger than 16 px does not land on 20.00 px; the multiplication happens against the inherited size. When you check a result from the calculator, confirm which base the tool used, and remember that the 4/3 ratio between points and pixels holds regardless.

  • 18 pt → 24.00 px (18 × 4/3), and 24 px → 18 pt (24 × 3/4)
  • 1.25 em on a 16 px base → 20.00 px; 20 px on a 16 px base → 1.25 em
  • 150% on a 20 px base → 30.00 px → 22.50 pt; 22.50 pt → 30 px → 150% on a 20 px base
Points convert to pixels at a fixed 4/3 ratio. Em, rem and percent do not: their pixel value depends entirely on the base size they refer to.

Choosing a base size

Every conversion on a font size conversion calculator depends on a starting number, and in web work that number is usually the root size. Browsers ship with a default of 16 px, which is the value most rem-based systems assume when nothing else is specified. That default matters because the root size is not a fixed physical measurement — it is a reference point that the rest of your stylesheet divides against. Change it, and the meaning of every rem in the document changes with it.

The relationship between CSS units is exact, not approximate. In CSS, 1 pt is exactly 4/3 px, because CSS fixes 1 inch = 96 px while print points run 72 to the inch. That fixed ratio is what lets a calculator move cleanly between print and screen values. For example, 18 pt converts to 24.00 px. Working from a known base keeps those conversions consistent, whether you are translating a print spec into screen sizes or checking that a design's type scale holds up when rendered.

Relative units inherit their meaning from whatever base they point at. 1.25 em on a 16 px base is 20.00 px; em and rem are only as fixed as the base size they refer to. The difference between the two is where they look for that base. Percent and em compound through nesting, while rem always refers to the root element's size — the usual reason layouts drift when the base changes. A nested element sized in em can end up larger or smaller than intended because each level multiplies the one above it, whereas a rem value stays tied to the single root figure.

That compounding behavior explains why changing the root size ripples through an entire rem-based design system at once. If a user has set a larger browser default for readability, or if you set the root size in a stylesheet, every rem-based heading, body size, margin, and spacing value scales proportionally. A value that was comfortable at one root size can become noticeably larger or smaller at another. This is often a feature rather than a bug — it lets a layout respond to user preference — but it also means the base size is a design decision, not a detail to leave unexamined. Accessibility guidance on text size generally favors keeping body text readable at default settings and letting users scale text rather than locking sizes in absolute pixels. Choosing a base size deliberately, and documenting it, keeps conversions predictable and prevents the drift that comes from mixing compounding and root-relative units in the same system.

When you test a scale, run the same values through the calculator at the base you actually ship. That way the numbers you see match the numbers users see, and any surprise from a changed root size shows up before it reaches a live page.

Rem values always resolve against the root element's size, so a single change to the base rescales every rem-based dimension in the design at once.

Print versus screen

Points are a print unit. In print, points run 72 to the inch, which is why a 12 pt type size has a physical meaning on paper. In CSS, points survive mainly for one purpose: print stylesheets. When you write a print rule with a point value, you are speaking the language of the printed page, and the browser translates it for you. That translation is where the font size conversion calculator earns its place, because the rules behind it are fixed rather than guessed.

The key fact is that CSS defines 1 inch as exactly 96 px. Since print points run 72 to the inch, one point is exactly 4/3 px. That ratio is not an estimate or a device-specific approximation — it is built into the specification. So 18 pt converts to 24.00 px, every time, on every browser that follows the standard. The conversion is exact because the inch itself is pinned to a fixed pixel count in CSS, not to the physical size of your monitor.

This is also why pt-to-px conversion is not device-dependent in the way people sometimes assume. The browser does not measure your screen and adjust the point. It applies the fixed 96 px inch and the 72-to-the-inch point, and the arithmetic follows. A point value in a screen stylesheet therefore resolves to a predictable pixel figure, which is what makes a font size conversion calculator useful for checking that a print-oriented value lands where you expect on screen.

Relative units behave differently. Em and rem are only as fixed as the base size they refer to. On a 16 px base, 1.25 em is 20.00 px — but change the base and the result changes with it. Percent and em compound through nesting, so a value can grow or shrink at each level of the document. Rem avoids that trap because it always refers to the root element's size, which is the usual reason layouts drift when the base changes. A percentage shows the same dependency: 150% on a 20 px base is 30.00 px, which is 22.50 pt.

The practical split is straightforward. Use points when you are writing for print, where the 72-per-inch convention applies. Use pixels, em, or rem when you are designing for screens, and remember that only the pixel side of the pt-to-px bridge is anchored by the fixed 96 px inch. Everything relative depends on a base you control — and that base is the first thing to check when a conversion surprises you.

1 pt = 4/3 px exactly, because CSS fixes 1 inch at 96 px while print points run 72 to the inch. That is why 18 pt is 24.00 px on any standards-compliant browser.

FAQs

How do you convert pt to px?

Multiply the point value by 4/3, the ratio of 96 pixels per CSS inch to 72 points per inch. For example, 18 pt times 4/3 gives 24.00 px. The same factor works in reverse: divide pixels by 4/3, or multiply by 3/4, to get points.

How many px is 1 em?

One em equals the base font size in use, so on the default 16 px base, 1 em is 16 px. Scaling follows directly: 1.25 em on that base is 20.00 px. Because em tracks the current font size, that pixel value changes whenever the surrounding base size changes.

What is the difference between em and rem?

Em refers to the parent element's font size, so nested elements compound as each level multiplies the size it inherits. Rem always refers to the root element's font size, so it stays consistent no matter how deeply an element is nested. Use rem for predictable sizing and em for scaling tied to local context.

Is 12 pt the same as 16 px?

Yes. Converting 12 pt gives 12 times 4/3, which equals 16 px. That is why 12 pt body text and the 16 px web default match. The two units line up exactly at this point, so a design specified as 12 pt maps cleanly onto a 16 px browser baseline.

What does 150% font size mean?

A 150% font size means one and a half times the base size. On a 20 px base, 150% works out to 30.00 px. Percentage sizing behaves like em in that it scales relative to the current base, so the resulting pixel value shifts whenever that base changes.

Why does my pt size look different in print?

Points are physical in print, at 72 per inch, while on screen they are anchored to the 96 px CSS inch. The conversion between the two is exact, but rendering and rounding differ between print and screen, so the same point size can appear slightly different in each medium.

Sources

Related calculators

Print Size Calculator
How big an image prints at any DPI — inches and centimetres, megapixels, and how far the same pixels stretch at 240 and 150 dpi.
PPI Calculator
Pixels per inch of any screen from its resolution and diagonal size — with total megapixels and dot pitch, so sharpness claims can be checked in seconds.
Aspect Ratio Calculator
Simplify any width and height to their aspect ratio — and, given a diagonal, the physical width and height that ratio produces.
Dimensional Weight Calculator
Dimensional (DIM) weight and billable weight for parcels under the FedEx/UPS 139, USPS 166 and 200 divisors, from package dimensions and actual weight.