Enter a value and a unit
Pixels, rem, em, points, picas, millimetres, centimetres or inches.
Enter a value in any unit and see it in all the others. Set the root font size to match your stylesheet, and use the table of common sizes as a reference.
100% private — the calculation is done in your browser and nothing is sent to any server.
Pixels, rem, em, points, picas, millimetres, centimetres or inches.
16 px is the browser default. Change it if your CSS sets another size.
Every unit is shown at once.
Web design mixes several units, and moving between them is a constant chore: a design hands you sizes in pixels, the stylesheet uses rem, a print stylesheet wants points or millimetres, and someone asks how big something is in centimetres. This converter shows any value in all of them at once, so you do not need to work out the conversion each time.
Sizing text and spacing in rem lets your layout follow the reader's own font size setting. Someone who has increased the default text size in their browser gets a proportionally larger page, while sizes fixed in pixels ignore the preference. This is a real accessibility benefit. The root size field lets you convert for stylesheets that change the base, such as a 62.5% root that makes 1 rem equal to 10 px.
The conversions to points, millimetres and inches follow the CSS definition, in which an inch is 96 pixels. On a real screen the physical size of a pixel varies with the device, so a 96-pixel line is not always exactly one inch on screen. In print styles the conversion is exact, which is where these units are most useful.
It does not convert viewport units (vw, vh) or percentages, which depend on the size of the window or of the parent, and it does not know the device pixel ratio. To work out the shape of an image or a screen, use the aspect ratio calculator.
More utilities that also run without leaving your browser.