CSS Units Converter
Convert between px, rem, vw, vh, vmin and vmax in your browser, using your own root font size and window size.
Fonctionne à 100 % dans votre navigateur — vos données ne sont jamais envoyées ni stockées sur nos serveurs.
Cet outil n'est pas encore entièrement traduit : une partie du texte est encore en anglais. L'outil lui-même fonctionne de la même façon dans toutes les langues.
Converts between px, rem, vw, vh, vmin, and vmax.
(Viewport: 1920px × 1080px, Root font size: 16px)
Please enter a valid number.
Exemples rapides
Des entrées typiques et les résultats produits par cet outil.
Présentation
CSS Units Converter turns a value in px, rem, vw, vh, vmin or vmax into any other unit from that list, so you can move a design from fixed pixel measurements to scalable rem sizes or viewport-relative sizing.
Front-end developers use it when translating a design file into CSS, or to check how many pixels 5vw actually is. Rem results use the root font size of the page (normally 16px), and vw, vh, vmin and vmax use the current size of your browser window. Both numbers are shown above the form, and the window size updates when you resize it.
The result is rounded to four decimals and calculated in your browser, so nothing is sent anywhere. The em unit is not offered, because it depends on the font size of a parent element that a standalone converter cannot know.
Pourquoi utiliser cet outil ?
- Improve responsive design and scalability
- Better accessibility for users with custom font settings
- Save time and avoid manual calculations
- Perfect for developers and designers
- Free to use, no sign-up required
Fonctionnalités
Instant result
The result is calculated as you type — no button click needed.
Six CSS units
Converts between px, rem, vw, vh, vmin and vmax in any direction.
Root font size read
Rem conversions use the root font size of the page, shown above the form.
Live viewport size
vw, vh, vmin and vmax use your current window size and follow window resizing.
Clean rounding
Results are rounded to four decimals with trailing zeros removed.
Input check
An empty or invalid number shows a clear message instead of a wrong result.
Runs in your browser
Calculations happen locally, with no account and no data sent to a server.
Mode d'emploi
Enter the value
Type the number you want to convert into the value field (16 is filled in by default).
Select units
Pick the unit to convert from in the first dropdown and the target unit in the second, after "to".
Read the result
The converted value appears below the form as you type or change a unit.
Use it in your CSS
Select the result text, copy it and paste it into your stylesheet.