Convertisseur d'unités Px / Em

Taille de police de base : px (généralement 16 px)

Px en Em

px em

Exemple : 24 px → 1,5 em (base 16 px)

Em en Px

em px

Exemple : 1,5 em → 24 px (base 16 px)

Table de référence rapide (base :16px)

Px Em Utilisations courantes Actions

Conversion par lots (une valeur par ligne)

À propos des unités Px et Em :

Px (Pixels) :An absolute unit with a fixed size that does not change with browser settings. 1px equals one physical pixel on the screen.

Em :A relative unit based on the font size of the current element. 1em equals the font size of the current element. If the current element does not have a set font size, it inherits from its parent element.

Formules de conversion :
• Px → Em: em = px ÷ base font size
• Em → Px: px = em × base font size

Recommandations :Using em units makes your page more responsive and accessible, allowing users to adjust font sizes through browser settings. The default browser font size is typically 16px.