PX to EM example 1
Input
32 with default base 16
Output
2em
Converts a pixel size using the default base font size.
Converters
Review practical PX to EM examples so you can understand expected input, output, and common patterns faster.
Use this PX to EM converter to turn pixel values into em units using a base font size. It is useful for front-end work, scalable layouts, responsive typography, and any CSS workflow where relative sizing matters more than fixed pixel dimensions.
Example pages are especially useful for converters because they show what good input looks like, what kind of output to expect, and how the tool behaves in common scenarios.
Input
32 with default base 16
Output
2em
Converts a pixel size using the default base font size.
Input
24 with base 12
Output
2em
Useful when a project uses a non-default base size.
Fix: Use the actual project base size for an accurate conversion.
Fix: Use the correct CSS unit converter for the unit you need.
Fix: Enter clean numeric values if the tool expects raw numbers.
After reviewing these examples, run the live tool with your own input. If your task involves a follow-up step, the related page can help you move to the next tool in the workflow.
Open the main PX to EM page and test your own real input.