Skip to main content
☀
👤
CS

CSS Unit Converter (px, em, rem, pt)

Utilities Free Updated 4 Oct 2026
⚠ Report Issue
ⓘ About this tool 🔄 Last updated 4 Oct 2026 ✓ Reviewed by TopToolAI Team

Converts a CSS size between pixels, em, rem, and points, using the root font size you specify (16px is the common browser default).

How to use CSS Unit Converter (px, em, rem, pt)

Step-by-step guide to the boxes below. Open it only if you need help.

  1. 1
    Value Text

    The number you want to convert.

    Example: 16

  2. 2
    From unit Choose one

    The unit your number is in now.

    Choose one: pxemrempt

  3. 3
    Root font size (px) Text

    Browser default is 16px unless your CSS changes it.

    Example: 16

  4. 4
    Press “Convert”

    Click the button under the boxes. If something is missing or not valid, a short message tells you which box to fix.

  5. 5
    Read your result

    Your answer appears under the button, with a short note in plain words where it helps. Change any box and press again to compare different numbers.

Embed this calculator on your website

Want this calculator on your own site? Copy the code below and paste it into the HTML of any page or post. It works the same as it does here. If you do not mind, leave the small link under it in place.

CSS Unit Converter (px, em, rem, pt) FAQs

What is the difference between em and rem?
em is relative to the font size of its parent element; rem is relative to the root (html) element's font size. This tool assumes a single base size for both, for simplicity.
What is a root font size?
The font size of the html element, usually 16 px. rem units are multiples of it.
When should I use px, em or rem?
px for fixed sizes like borders, rem for consistent, accessible text sizing, and em for sizes relative to the parent.
How do I convert px to rem?
Divide the pixel value by the root font size. 24 px with a 16 px root is 1.5 rem.

User Reviews

No reviews yet — be the first to try this tool and leave one.

Leave a review

More Free Tools

Handy the next time you're here

TE
Text Diff Checker
Utilities
Text Diff Checker, a free, instant tool.
⚡ No signup
IB
IBAN Validator
Utilities
IBAN Validator, a free, instant tool.
⚡ No signup
CR
Credit Card Number Validator (Luhn Check)
Utilities
Credit Card Number Validator (Luhn Check), a free, instant tool.
⚡ No signup
CS
CSV to JSON Converter
Utilities
CSV to JSON Converter, a free, instant tool.
⚡ No signup
MA
Markdown to HTML Converter
Utilities
Markdown to HTML Converter, a free, instant tool.
⚡ No signup
DO
Download/Upload Time Estimator
Utilities
Download/Upload Time Estimator, a free, instant tool.
⚡ No signup
UR
URL Query String Parser
Utilities
URL Query String Parser, a free, instant tool.
⚡ No signup
CO
Color Contrast Checker (WCAG)
Utilities
Color Contrast Checker (WCAG), a free, instant tool.
⚡ No signup

Browse all Free Tools →

Get Deal Alerts

Leave your email and we'll let you know whenever a new free tool launches or a Discount Tools deal goes live. No spam, unsubscribe any time.