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.
Same workflow or intent — pick the next step without leaving the site.
Free SVG icon customizer — adjust icon size, fill color, stroke width, and opacity with a live preview. Download the customized SVG or copy the inline code. No signup required. Runs locally in your browser when supported—no upload required for normal use.
Free SVG to JSX converter — paste SVG markup and instantly get React-compatible JSX with camelCase attributes, cleaned props, and self-closing tags. No signup needed. Runs locally in your browser when supported—no upload required for normal use.
Free CSS border radius generator — set individual corner values visually and copy the CSS border-radius property instantly. Supports all four corners independently. No signup. Runs locally in your browser when supported—no upload required for normal use.
Free CSS box shadow generator — set X/Y offset, blur radius, spread, and color visually with live preview. Copy the finished CSS box-shadow property instantly. No signup. Runs locally in your browser when supported—no upload required for normal use.
Free CSS clip-path generator — build polygon, circle, and ellipse shapes visually with draggable points and copy the clip-path CSS property instantly. No signup needed. Runs locally in your browser when supported—no upload required for normal use.
Free color contrast checker — test text and background color combinations for WCAG AA (4.5:1) and AAA (7:1) compliance. Essential for accessible web design. No signup. Runs locally in your browser when supported—no upload required for normal use.
Frequently opened tools from the same category.
Free color palette generator — create complementary, analogous, triadic, and monochromatic palettes from any base color. Copy HEX codes instantly. No signup. Runs locally in your browser when supported—no upload required for normal use.
Free CSS gradient generator — create linear and radial gradients with custom colors, stops, and directions. Live preview and one-click CSS copy. No signup required. Runs locally in your browser when supported—no upload required for normal use.
Free favicon generator — create website favicons in 16×16, 32×32, 48×48, and 64×64 PNG sizes from text, emoji, or an uploaded image. Download as .ico or individual PNG files. No signup. Runs locally in your browser when supported—no upload required for normal use.
Free color contrast checker — test text and background color combinations for WCAG AA (4.5:1) and AAA (7:1) compliance. Essential for accessible web design. No signup. Runs locally in your browser when supported—no upload required for normal use.
Cross-category tools others open in the same session.
Free JSON formatter — paste minified or messy JSON and instantly get beautified, indented output with syntax highlighting and error detection. Browser-based, no server upload. Runs locally in your browser when supported—no upload required for normal use.
Compress JPG, PNG & WebP in your browser—up to 80% smaller, batch 25 files, 50/100/200 KB presets. Files stay on your device. No signup.
Free PDF merger — combine multiple PDF files into one document. Drag to reorder files, preview pages, and download the merged PDF instantly. No signup, fully browser-based. Runs locally in your browser when supported—no upload required for normal use.
Instantly count words, characters, sentences, paragraphs, and reading time. Great for essays, articles, and SEO writing. No signup — works as you type. Runs locally in your browser when supported—no upload required for normal use.
Browse full tool collections by topic.