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.
The quick brown fox jumps over the lazy dog
Font size: 16px
Click a row to load that size into the converter.
| Pixels | Em | Rem | Points | Percent |
|---|
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(...);
The quick brown fox jumps over the lazy dog
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 { ... }
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.
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.
Precise calculations based on standard web typography ratios
See how your font size looks in real-time as you convert
Click any converted value to instantly copy it to your clipboard
Create fluid, responsive font sizes with CSS clamp() in one click
Generate harmonious size scales from musical ratios & the golden ratio
Paste a whole stylesheet and convert every px value to rem (or back) in one go
Works perfectly on all devices - phones, tablets, and desktops