What does CSS Unit Converter do?
Convert responsive CSS units with live updates.
Convert responsive CSS units with live updates.
Convert between px, rem, em, pt, vh, vw, and %. Click any result to copy it.
| px | rem | pt | Notes |
|---|---|---|---|
| 10px | 0.625rem | 7.5pt | small labels |
| 12px | 0.75rem | 9pt | small text |
| 14px | 0.875rem | 10.5pt | body small |
| 16px | 1rem | 12pt | default body |
| 18px | 1.125rem | 13.5pt | large body |
| 20px | 1.25rem | 15pt | h5 |
| 24px | 1.5rem | 18pt | h4 |
| 32px | 2rem | 24pt | h3 |
| 48px | 3rem | 36pt | h2 |
| 64px | 4rem | 48pt | h1 |
html) font size. 1rem = 16px by default. Unlike em, rem is not affected by nesting — it always references the root. Preferred for scalable layouts.font-size: 1.5em inside a parent of 1.5em results in 2.25× the root size. Useful for component-scoped scaling.1vw = 1% of the viewport width; 1vh = 1% of the viewport height. Dynamic on resize. On mobile, 100vh includes the browser chrome; use dvh (dynamic viewport height) to exclude it.Use rem for font sizes, spacing, and anything that should scale when a user changes their browser's default font size. Browsers default to 16px, so 1rem = 16px — but users on accessibility settings may raise this to 20px, and rem values will scale proportionally. Use px only for things that should stay fixed regardless of user settings, like border widths or icon sizes.
The browser default is 16px, so 1rem = 16px. You can override this with html { font-size: 62.5%; } to make 1rem = 10px, which simplifies mental math (1.4rem = 14px). However, this overrides the user's browser font preference, which hurts accessibility. A better approach is to leave the root font size as the browser default and use rem values as they are.
em is relative to the element's own font size. If a parent has font-size: 1.5em and a child also has font-size: 1.5em, the child ends up at 1.5 × 1.5 = 2.25em relative to the root — not 1.5em. This compounding behavior makes em tricky in deeply nested components. Use rem when you want consistent sizing that ignores nesting depth.
vw and vh are relative to the initial viewport size — on mobile, this includes the browser's address bar and bottom navigation. When those UI elements hide during scroll, elements sized with vh can overflow. dvw (dynamic viewport width) and dvh (dynamic viewport height) update in real time to always equal the currently visible area. Use dvh for full-screen layouts on mobile to avoid scroll issues.
Generally no. pt is a print unit (1pt = 1/72 inch) and it is only meaningful in print stylesheets (@media print). On screen, pt values are converted based on a fixed 96dpi assumption — 1pt ≈ 1.33px. Design tools like Figma and Illustrator use pt, so this converter helps you translate those values to rem or px for your CSS.
Convert responsive CSS units with live updates. Use it in your browser without uploading files for typical workflows.
Free CSS unit converter — convert px, rem, em, vw, and vh with a custom root font size. See all CSS unit equivalents at once for responsive design. No signup required. Runs locally in your browser when supported—no upload required for normal use. Designed for quick everyday tasks with clear, copy-friendly output.
Free CSS unit converter — convert px, rem, em, vw, and vh with a custom root font size. See all CSS unit equivalents at once for responsive design. No signup required.
Concise answers for common searches — definitions, steps, and comparisons.
Convert responsive CSS units with live updates.
CSS Unit Converter (/css-unit-converter) runs in your browser when supported—inputs are not uploaded to EverydayTools servers.
Load CSS Unit Converter on EverydayTools—no account required.
Type, paste, or upload depending on what the tool accepts.
Results update in your browser for typical use cases.
Copy the output or use download/export when available.
Common real-world scenarios where this tool saves time.
Convert responsive CSS units with live updates.
Use when you want results without uploading files—local browser processing when the tool supports it.
Open CSS Unit Converter in any modern browser for quick checks with copy-friendly output.
How this EverydayTools page compares for typical use.
| Aspect | EverydayTools | Typical alternative |
|---|---|---|
| Cost | Free | Paid apps or trials |
| Privacy | Browser-local when supported | Often requires cloud upload |
| Signup | Not required | Often required |
Advertisement
Use rem for type and spacing that should respect user font settings; use px for fixed borders and icons.
Browsers default to 16px for 1rem unless you change the root font-size (consider accessibility).
Convert responsive CSS units with live updates.
Convert responsive CSS units with live updates.
CSS Unit Converter (/css-unit-converter) runs in your browser when supported—inputs are not uploaded to EverydayTools servers.
Unit math runs in your browser—conversion inputs are not stored remotely.
Verify JSX and units in target browsers and design tooling.
For design and development prototyping—not a substitute for design-system tokens.
Advertisement
Reviewed by EverydayTools Editorial Team on 2026-05-19.