EM to PX example 1
Input
2 with default base 16
Output
32px
Converts a relative em size into fixed pixels.
Converters
Review practical EM to PX examples so you can understand expected input, output, and common patterns faster.
Use this EM to PX converter to calculate pixel values from em units using a base font size. It is useful for CSS debugging, design systems, front-end implementation, and any workflow where a relative em value needs to be expressed as a fixed pixel dimension.
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
2 with default base 16
Output
32px
Converts a relative em size into fixed pixels.
Input
1.5 with base 20
Output
30px
Useful when a project uses a custom base font size.
Fix: Use the actual parent or base size that applies in the target context.
Fix: Use a rem converter if the sizing should depend on the root font size instead.
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 EM to PX page and test your own real input.