DTTooleras
📏

CSS Unit Converter

CSS Tools

Convert between px, rem, em, vh, vw, and more. Free, private — all processing in your browser.

px
16.00
rem
1.0000
em
1.0000
pt
12.00
vw
0.8333
vh
1.4815
%
100.00
cm
0.4233
mm
4.2333
in
0.1667

Quick Reference (base: 16px)

8px
0.500rem
10px
0.625rem
12px
0.750rem
14px
0.875rem
16px
1.000rem
18px
1.125rem
20px
1.250rem
24px
1.500rem
28px
1.750rem
32px
2.000rem
36px
2.250rem
40px
2.500rem
48px
3.000rem
56px
3.500rem
64px
4.000rem
72px
4.500rem

How to use

  1. 1. Enter or paste your data in the input area above
  2. 2. Adjust settings or options as needed
  3. 3. Click the action button or see real-time results
  4. 4. Copy the result with the copy button

All processing happens in your browser. Nothing is sent to any server.

About this tool

Convert CSS units between px, rem, em, %, vh, vw, pt, cm, mm, and inches. Set your base font size (default 16px) for accurate rem and em calculations, and your viewport dimensions for vh and vw conversions. The tool shows all 10 unit conversions simultaneously and includes a quick reference table mapping common pixel values to rem equivalents. Essential for responsive web design, converting design mockups (usually in px) to relative units (rem/em for scalability), and ensuring consistent sizing across different screen sizes and user font preferences. The rem unit is recommended for most CSS sizing as it respects user font size preferences for accessibility.

FAQ

Is the CSS Unit Converter free to use?

Yes, completely free. No signup, no premium tiers, no hidden costs.

Is my data safe when using the CSS Unit Converter?

All processing happens in your browser. Your data never leaves your device.

Does the CSS Unit Converter work on mobile?

Yes, fully responsive. Works on smartphones, tablets, and desktops.

Do I need to install anything?

No. It runs entirely in your web browser. Just open the page and use it.

Related tools

All CSS Tools

Learn more

Explore more tools

200+ free tools that run in your browser.

Browse all tools →