PX to REM Converter
font-size: 1.0000rem; /* 16px */
Tailwind Class: text-base
| PX | REM | EM | PT | Tailwind Class |
|---|---|---|---|---|
| 8 | 0.5000 | 0.5000 | 6.00 | — |
| 10 | 0.6250 | 0.6250 | 7.50 | text-xs |
| 12 | 0.7500 | 0.7500 | 9.00 | text-xs |
| 14 | 0.8750 | 0.8750 | 10.50 | text-sm |
| 16 | 1.0000 | 1.0000 | 12.00 | text-base |
| 18 | 1.1250 | 1.1250 | 13.50 | text-lg |
| 20 | 1.2500 | 1.2500 | 15.00 | text-xl |
| 24 | 1.5000 | 1.5000 | 18.00 | text-2xl |
| 28 | 1.7500 | 1.7500 | 21.00 | text-3xl |
| 32 | 2.0000 | 2.0000 | 24.00 | text-3xl |
| 36 | 2.2500 | 2.2500 | 27.00 | text-4xl |
| 40 | 2.5000 | 2.5000 | 30.00 | — |
| 48 | 3.0000 | 3.0000 | 36.00 | text-5xl |
| 56 | 3.5000 | 3.5000 | 42.00 | — |
| 64 | 4.0000 | 4.0000 | 48.00 | — |
| 72 | 4.5000 | 4.5000 | 54.00 | — |
| 80 | 5.0000 | 5.0000 | 60.00 | — |
| 96 | 6.0000 | 6.0000 | 72.00 | — |
This tool is part of these guided projects. Each project provides step-by-step instructions with checklists and all the tools you need in one place.
Define a primary palette, build accessible color scales, design gradients, and export CSS design tokens.
Define breakpoints, build mobile-first with CSS Grid and Flexbox, convert units to rem, and test across devices.
Tools you might need next
Convert em to pixels. Custom base. For typography and layout. Free design tool with instant browser-based results — no account, works on desktop and mobile.
Convert between px, pt, em, rem, %, vw. All font size units. For typography. Free design tool with instant browser-based results — no account, works on
Calculate line-height from font size and multiplier. For typography and readability. Free design tool with instant browser-based results — no account, works
The PX to REM Converter converts between RGB, HSL, HSV, and hex using standard linear transforms. Gamma-correct sRGB values are assumed unless otherwise noted.
HSL ↔ RGB via standard cylindrical transformContrast ratios are computed per WCAG 2.1 relative luminance formula. Results indicate AA and AAA compliance for normal and large text.
Contrast = (L1 + 0.05) / (L2 + 0.05)Generated values are emitted in copy-ready formats (hex, CSS, Tailwind, SVG). Precision is tuned for design tools without unnecessary floating-point noise.
Updated: July 2026
A UI designer uses the PX to REM Converter to explore complementary colors and verify WCAG contrast before handing specs to developers.
A front-end developer checks spacing, ratio, or typography values with the PX to REM Converter while implementing a Figma mockup in CSS.
A freelancer generates live examples with the PX to REM Converter during a client call to agree on visual direction without switching tools.
Use our free PX to REM Converter for fast, accurate results in your browser. No signup or installation required — works on any device.