CSS Units Converter
NewConvert between CSS units: px, rem, em, pt, vh, vw, %. Customize base font size and viewport dimensions.
Rate this tool
How to Use
Enter value
Enter the CSS value to convert.
Set base
Set root font size if needed.
Convert
See all unit equivalents.
Features
Frequently Asked Questions
rem is relative to root font size, em is relative to parent element's font size.
Convert between CSS units like px, em, rem, vh, vw, and percentages. Essential for responsive web design and maintaining consistent typography across your projects.
Did You Know?
The 'px' unit in CSS isn't actually tied to physical pixels! On high-DPI screens, 1 CSS pixel can represent multiple device pixels. This is why designs look crisp on retina displays even when sized in pixels.
- Rem is relative to root font-size (usually 16px), em is relative to parent
- Use rem for global sizing, em for component-specific scaling
- 1vw = 1% of viewport width, useful for fluid typography
Explore Other Categories
Discover more useful tools from different categories
Word Counter
Count words, characters, sentences and paragraphs in your text instantly.
QR Code Generator
Create QR codes for URLs, text, and more. Download as PNG.
Percentage Calculator
Calculate percentages, percentage change, and percentage of numbers.
Meta Tag Generator
Generate HTML meta tags for SEO optimization with title, description, keywords and more.