CSS Unit Converter
Convert between any CSS units with detailed explanations and accurate calculations. Find the conversion you need from our comprehensive collection below.
Popular Conversions
Most commonly used CSS unit conversions
Relative Units
Conversions for rem, em, and percentage units
1. Identify the parent element's font size.
1. Identify the context (e.g., parent element's width).
Since both rem and em are relative units, the conversion is 1:1. However, remember that rem is relative to root font size while em is relative to parent element.
Since both em and rem are relative units, the conversion is 1:1. However, remember that em is relative to parent element while rem is relative to root font size.
1. Convert rem to px (multiply by root font size, typically 16px).
1. Convert rem to px (multiply by root font size, typically 16px).
1. Convert rem to px (multiply by root font size, typically 16px).
1. Convert rem to px (multiply by root font size, typically 16px).
1. Convert rem to px (multiply by root font size).
1. Convert rem to px (multiply by root font size).
1. Convert rem to px (multiply by root font size).
1. Convert em to px (multiply by parent element font size).
1. Convert em to px (multiply by parent element font size).
1. Convert em to px (multiply by parent element font size).
1. Convert em to px (multiply by parent element font size).
1. Convert em to px (multiply by parent element font size).
1. Convert em to px (multiply by parent element font size).
1. Convert em to px (multiply by parent element font size).
Pixels
Pixel-based conversions
1. Determine the viewport height in pixels.
1. Determine the smaller of viewport width or height in pixels.
1. Determine the larger of viewport width or height in pixels.
1. Determine the context (e.g., parent element's width).
Multiply the px value by 0.75.
1. Determine the screen PPI (pixels per inch).
1. Determine the screen PPI.
Divide the px value by the screen PPI (pixels per inch).
Divide the px value by 16.
Viewport Units
Viewport-relative unit conversions
1. Identify the viewport height in pixels.
1. Identify the smaller of viewport width or height in pixels.
1. Identify the larger of viewport width or height in pixels.
1. Calculate viewport aspect ratio (width/height).
1. Calculate viewport aspect ratio (height/width).
1. Convert vw to px based on viewport width.
1. Convert vw to px based on viewport width.
1. Convert vw to px based on viewport width.
1. Convert vw to px based on viewport width.
1. Convert vw to px based on viewport width.
1. Convert vh to px based on viewport height.
1. Convert vh to px based on viewport height.
1. Convert vh to px based on viewport height.
1. Convert vh to px based on viewport height.
1. Convert vh to px based on viewport height.
Physical Units
Physical measurement conversions
Multiply the pt value by 1.3333 (or divide by 0.75).
1. Identify the screen PPI.
1. Identify the screen PPI.
Multiply the inch value by the screen PPI (pixels per inch).
Multiply the pc value by 16.
Multiply the centimeter value by 10.
Divide the millimeter value by 10.
1. Convert pt to px (multiply by 1.333).
1. Convert pt to px (multiply by 1.333).
1. Convert pt to px (multiply by 1.333).
1. Convert pt to px (multiply by 1.333).
Divide points by 12 (1 pica = 12 points).
Multiply points by 0.035277778 (1pt = 0.035277778cm).
Multiply points by 0.35277778 (1pt = 0.35277778mm).
Divide points by 72 (72pt = 1 inch).
1. Convert inches to px (multiply by 96).
1. Convert inches to px (multiply by 96).
1. Convert inches to px (multiply by 96).
1. Convert inches to px (multiply by 96).
Multiply inches by 72 (1 inch = 72 points).
Multiply inches by 6 (1 inch = 6 picas).
Multiply inches by 2.54 (1 inch = 2.54 centimeters).
Multiply inches by 25.4 (1 inch = 25.4 millimeters).
1. Convert picas to px (multiply by 16).
1. Convert picas to px (multiply by 16).
1. Convert picas to px (multiply by 16).
1. Convert picas to px (multiply by 16).
Multiply picas by 12 (1 pica = 12 points).
1. Convert picas to inches (divide by 6).
1. Convert picas to inches (divide by 6).
Divide picas by 6 (6 picas = 1 inch).
1. Convert cm to px (multiply by ~37.8).
1. Convert cm to px (multiply by ~37.8).
1. Convert cm to px (multiply by ~37.8).
1. Convert cm to px (multiply by ~37.8).
Multiply centimeters by 28.346 (1cm = 28.346 points).
Divide centimeters by 2.54 (2.54cm = 1 inch).
1. Convert mm to px (multiply by ~3.78).
1. Convert mm to px (multiply by ~3.78).
1. Convert mm to px (multiply by ~3.78).
1. Convert mm to px (multiply by ~3.78).
Multiply millimeters by 2.835 (1mm = 2.835 points).
Divide millimeters by 25.4 (25.4mm = 1 inch).
1. Convert mm to inches (divide by 25.4).
All Conversions
Find any unit conversion you need organized by source unit. Each section shows all possible conversions from that unit type.