Font Size Converter

Convert px, em, rem, pt & % — plus clamp() and type scales

Base font size affects em/rem calculations. Standard browser default is 16px.

rem is always relative to the root (<html>) size. em and % are relative to the parent element, so set a parent size if your text sits inside something that isn't the base size.

Pixels
-
Copied!
Em
-
Copied!
Rem
-
Copied!
Points
-
Copied!
Percent
-
Copied!
Picas
-
Copied!
Millimeters
-
Copied!
Viewport width
-
Copied!

Live Preview

The quick brown fox jumps over the lazy dog

Font size: 16px

Settings

Recent Conversions

No recent conversions yet.

Common Font Size Conversions

Click a row to load that size into the converter.

Pixels Em Rem Points Percent

Responsive clamp() Generator

Generate a fluid CSS font-size that scales smoothly between a minimum and maximum size across viewport widths. Output uses rem (relative to your base font size) so it respects user zoom.

font-size: clamp(...);

Fluid Preview (resize your window)

The quick brown fox jumps over the lazy dog

Modular Type Scale

Build a harmonious set of font sizes from a base size and a ratio. Each step multiplies (or divides) the previous size by the ratio. Click any row to copy its value.

:root { ... }

Bulk CSS px ↔ rem Converter

Paste CSS (or a list of values). Every px value is rewritten as rem using the root size below, or the other way round. Nothing is uploaded; it all runs in your browser.

About This Tool

This free font size converter helps web developers and designers quickly convert between different CSS font size units. Whether you're working with pixels (px), em units, rem units, points (pt), or percentages, this tool provides instant conversions with a live preview. It also generates responsive clamp() values and modular type scales.

How to use: Simply enter a value in any unit, and see instant conversions to all other units. Adjust the base font size for accurate em/rem calculations, and click any result to copy it to your clipboard.

Need to convert a whole stylesheet? The Bulk px ↔ rem tab rewrites every px value in pasted CSS to rem (or back), skipping hairline borders and media queries if you want.

🎯

Accurate Conversions

Precise calculations based on standard web typography ratios

👁️

Live Preview

See how your font size looks in real-time as you convert

📋

Click to Copy

Click any converted value to instantly copy it to your clipboard

📐

clamp() Generator

Create fluid, responsive font sizes with CSS clamp() in one click

🎼

Modular Type Scale

Generate harmonious size scales from musical ratios & the golden ratio

🔁

Bulk px ↔ rem

Paste a whole stylesheet and convert every px value to rem (or back) in one go

📱

Mobile Friendly

Works perfectly on all devices - phones, tablets, and desktops

How to Use This Tool

  1. Enter a font size value — Type the numeric size you want to convert in the input field.
  2. Select the unit type — Choose the unit you are converting from: Pixels (px), Em, Rem, Points (pt), or Percent.
  3. Adjust the base font size — Use the slider to change the base size (default 16px) for accurate em/rem/percent calculations.
  4. View instant results — See the converted values in all other units displayed in the results cards below.
  5. Click to copy — Click any result card to copy that value to your clipboard for use in your CSS.
  6. Convert a whole stylesheet — Open the Bulk px ↔ rem tab and paste your CSS to rewrite every px value as rem.

Common Use Cases