How to Convert CSS Units Online (px, rem, em, vw, vh)
CSS units can be confusing — should you use px, rem, em, or viewport units? Converting between them requires knowing the base font size and viewport dimensions. This guide shows you how to convert CSS units online using fixie.tools — a free calculator that handles all common CSS units for responsive design.
Step 1: Open the CSS Units Converter
Navigate to fixie.tools/css-units. No signup required.
Step 2: Enter Your Value and Source Unit
Type the numeric value and select the source unit (px, rem, em, vw, vh, vmin, vmax, %, pt, cm, mm, in). The tool supports all standard CSS length units.
Step 3: Set Your Base Values
Configure the base font size (default 16px) and viewport dimensions for accurate conversions. These values affect rem, em, vw, and vh calculations. Adjust them to match your project settings.
Step 4: View All Conversions
The tool instantly displays your value converted to all other CSS units simultaneously. Copy any value you need directly into your CSS code.