Pixel Converter
Convert CSS and print measurements around a pixel value. Set the DPI for print work and the root or parent font size for rem and em, and every unit updates together.
How to use the Pixel Converter
- Enter a value and choose its unit, for example 16 px.
- Choose the unit you want to convert to.
- Set the DPI (96 for CSS, 300 for print) if you need physical sizes.
- Adjust the root, parent font and parent size for rem, em and %.
- Copy all values at once from the result panel.
Features
- px, pt, pc, em, rem, %, in, cm and mm
- DPI presets for screen and print plus custom DPI
- Separate root and parent font sizes
- Percentage of a parent element size
Benefits
- Turn design mock-up pixels into rem for responsive CSS
- Work out print sizes for images at 300 DPI
- Translate point sizes between design and web
Frequently asked questions
How many pixels is 1 rem?
It equals the root font size, which is 16 px in most browsers by default. Change the root font size field if your site uses another value.
What is the difference between em and rem?
rem is relative to the root (html) font size; em is relative to the font size of the parent element, so it can compound when nested.
Why does CSS say 1 inch is 96 pixels?
CSS defines a reference pixel so that 1in = 96px on screen regardless of the actual display. For print, use the printer's DPI instead.
Related tools
- Volume Converter — Convert litres, millilitres, cubic metres, US and UK gallons, pints, cups, fluid ounces and spoons accurately.
- Unit Converter — Convert length, weight, temperature, area, volume, speed, time, data, pressure and energy units on one page.
- Length Converter — Convert between millimetres, centimetres, metres, kilometres, inches, feet, yards, miles and nautical miles.
- Weight Converter — Convert kilograms, grams, pounds, ounces, stones, tonnes, carats and grains with exact international factors.
- Temperature Converter — Convert temperatures between Celsius, Fahrenheit, Kelvin and Rankine using the correct offset formulas.
- Speed Converter — Convert speed between km/h, mph, m/s, knots, feet per second and Mach, with the sea-level Mach reference shown.