Bi-directional CSS unit conversion matrix with responsive clamp() generator and Tailwind CSS class mapper.
Your data is computed entirely inside your browser's JavaScript engine and is never sent to our servers.
Root: 16px • Parent: 16px • Viewport: 1920×1080px
Edit any unit field below — all other units recalculate instantaneously.
text-base (1rem / 16px)Absolute screen pixels (CSS 96 DPI)
Relative to root <html> font-size (16px)
Relative to parent element font-size (16px)
1% of screen width (1920px)
1% of screen height (1080px)
Traditional print typography point (1pt = 1.333px)
Relative percent of parent (16px)
clamp() GeneratorSmooth mathematical interpolation between mobile and desktop screen sizes.
Target size at mobile viewport
Target size at desktop viewport
Mobile benchmark (e.g. 375px)
Desktop benchmark (e.g. 1440px)
font-size: clamp(1.0000rem, 0.6479rem + 1.5023vw, 2.0000rem);Responsive Fluid Typography
Drag the slider above to see this headline scale continuously without rigid media query breakpoints.
Follow these 3 simple steps to complete your conversion in seconds.
Paste your CSS Units (PX ↔ REM ↔ EM ↔ VW ↔ PT) code directly into the left editor pane or click Upload to select a file.
Adjust indentation (2 or 4 spaces), toggle alphabetical key sorting, set SQL table name and dialect quotes, or pick a built-in template.
View formatted output in real time with line numbers and syntax highlighting. Click Copy or Download to save.
Formula representation used for accurate calculations:
Quick reference lookup table for standard unit calculations.
| Pixel Size (PX) | Root REM (REM) | Tailwind CSS Equivalent |
|---|---|---|
| 12 px | 0.7500 rem | text-xs / p-3 |
| 14 px | 0.8750 rem | text-sm / p-3.5 |
| 16 px | 1.0000 rem | text-base / p-4 |
| 18 px | 1.1250 rem | text-lg / p-4.5 |
| 20 px | 1.2500 rem | text-xl / p-5 |
| 24 px | 1.5000 rem | text-2xl / p-6 |
| 30 px | 1.8750 rem | text-3xl / p-7.5 |
| 36 px | 2.2500 rem | text-4xl / p-9 |
| 48 px | 3.0000 rem | text-5xl / p-12 |
| 64 px | 4.0000 rem | text-6xl / p-16 |
Common questions and answers about CSS Units Converter (PX ↔ REM ↔ EM ↔ VW ↔ PT).