Font size
Px
Rem
Pixel (px): Pixels are fixed-size units that are used in screen media (i.e. to be read on the computer screen). One pixel is equal to one dot on the computer screen (the smallest division of your screen’s resolution). One problem with the pixel unit is that it does not scale upward for visually-impaired readers or downward to fit mobile devices.
Rem (rem): The 'rem' unit is based upon the font-size value of the root element, which is the element. And if the element doesn’t have a specified font-size, the browser default value of 16px is used. So here only the value of the root is considered, and there is no relation with a parent element.
Px | Rem |
---|---|
1px | 0.0625rem |
2px | 0.125rem |
4px | 0.25rem |
8px | 0.5rem |
10px | 0.625rem |
12px | 0.75rem |
14px | 0.875rem |
Px | Rem |
---|---|
16px | 1rem |
18px | 1.125rem |
20px | 1.25rem |
24px | 1.5rem |
32px | 2rem |
64px | 4rem |
72px | 4.5rem |
Preview
Enter your text here (max font-size - 72px)
p { font-size: 16px; font-family: 'Lato', sans-serif; font-weight: 500; line-height: 16px; font-variant: normal; font-style: normal; font-stretch: normal; color: #fff; }
Your text
Font size
Px
Em
Pixel (px): Pixels are fixed-size units that are used in screen media (i.e. to be read on the computer screen). One pixel is equal to one dot on the computer screen (the smallest division of your screen’s resolution). One problem with the pixel unit is that it does not scale upward for visually-impaired readers or downward to fit mobile devices.
Em (em): The “em” is a scalable unit that is used in web document media. An em is equal to the current font-size, for instance, if the font-size of the document is 12pt, 1em is equal to 12pt. Ems are scalable in nature, so 2em would equal 24pt, .5em would equal 6pt, etc. Ems are becoming increasingly popular in web documents due to scalability and their mobile-device-friendly nature.
Px | Em |
---|---|
1px | 0.0625em |
2px | 0.125em |
4px | 0.25em |
8px | 0.5em |
10px | 0.625em |
12px | 0.75em |
14px | 0.875em |
Px | Em |
---|---|
16px | 1em |
18px | 1.125em |
20px | 1.25em |
24px | 1.5em |
32px | 2em |
64px | 4em |
72px | 4.5em |
Preview
Enter your text here (max font-size - 72px)
p { font-size: 16px; font-family: 'Lato', sans-serif; font-weight: 500; line-height: 16px; font-variant: normal; font-style: normal; font-stretch: normal; color: #fff; }
Your text
Font size
Px
Percent
Pixel (px): Pixels are fixed-size units that are used in screen media (i.e. to be read on the computer screen). One pixel is equal to one dot on the computer screen (the smallest division of your screen’s resolution). One problem with the pixel unit is that it does not scale upward for visually-impaired readers or downward to fit mobile devices.
Percent (%): The percent unit is much like the “em” unit, save for a few fundamental differences. First and foremost, the current font-size is equal to 100% (i.e. 16px or 12pt = 100%). While using the percent unit, your text remains fully scalable for mobile devices and for accessibility.
Px | Percent |
---|---|
1px | 6.25% |
2px | 12.5% |
4px | 25% |
8px | 50% |
10px | 62.5% |
12px | 75% |
14px | 87.5% |
Px | Percent |
---|---|
16px | 100% |
18px | 112.5% |
20px | 125% |
24px | 150% |
32px | 200% |
64px | 400% |
72px | 450% |
Preview
Enter your text here (max font-size - 72px)
p { font-size: 16px; font-family: 'Lato', sans-serif; font-weight: 500; line-height: 16px; font-variant: normal; font-style: normal; font-stretch: normal; color: #fff; }
Your text
Font size
Px
Pt
Pixel (px): Pixels are fixed-size units that are used in screen media (i.e. to be read on the computer screen). One pixel is equal to one dot on the computer screen (the smallest division of your screen’s resolution). One problem with the pixel unit is that it does not scale upward for visually-impaired readers or downward to fit mobile devices.
Pt (pt): Points are traditionally used in print media (anything that is to be printed on paper, etc.). One point is equal to 1/72 of an inch. Points are much like pixels, in that they are fixed-size units and cannot scale in size.
Px | Pt |
---|---|
1px | 0.75pt |
2px | 1.5pt |
4px | 3pt |
8px | 6pt |
10px | 7.5pt |
12px | 9pt |
14px | 10.5pt |
Px | Pt |
---|---|
16px | 12pt |
18px | 13.5pt |
20px | 15pt |
24px | 18pt |
32px | 24pt |
64px | 48pt |
72px | 54pt |
Preview
Enter your text here (max font-size - 72px)
p { font-size: 16px; font-family: 'Lato', sans-serif; font-weight: 500; line-height: 16px; font-variant: normal; font-style: normal; font-stretch: normal; color: #fff; }
Your text
Font size
Px
Centimeter
Pixel (px): Pixels are fixed-size units that are used in screen media (i.e. to be read on the computer screen). One pixel is equal to one dot on the computer screen (the smallest division of your screen’s resolution). One problem with the pixel unit is that it does not scale upward for visually-impaired readers or downward to fit mobile devices.
Centimeter (rem): The 'rem' unit is based upon the font-size value of the root element, which is the element. And if the element doesn’t have a specified font-size, the browser default value of 16px is used. So here only the value of the root is considered, and there is no relation with a parent element.
Px | Centimeter |
---|---|
1px | 0.026458cm |
2px | 0.052916cm |
4px | 0.105833cm |
8px | 0.211666cm |
10px | 0.264583cm |
12px | 0.3175cm |
14px | 0.370416cm |
Px | Centimeter |
---|---|
16px | 0.423333cm |
18px | 0.370416cm |
20px | 0.529166cm |
24px | 0.635cm |
32px | 0.846666cm |
64px | 1.693333cm |
72px | 1.905cm |
Preview
Enter your text here (max font-size - 72px)
p { font-size: 16px; font-family: 'Lato', sans-serif; font-weight: 500; line-height: 16px; font-variant: normal; font-style: normal; font-stretch: normal; color: #fff; }
Your text
Application usage
- In order to use the application which convert pixels to other units of measurement, just enter the desired number in the text window with the heading Px;
- You can also click on any number in the table, and it will be automatically applied;
- Unit sizes changes automatically displayed in the column with the heading PREVIEW;
- The text window displays text that can be changed, below the text window there are several selectors with which you can select and apply yours styles;
- In order to see the CSS code with the added styles, press the SHOW CODE button in the text window next to the text.