Convert pixels to em for a given font size.
EM to PX Converter
Convert an em value to pixels for a given font size.
- Free
- No sign-up
- Runs in your browser
Input
A number, e.g. 2.
The element’s font size; defaults to 16.
Fill in EM value to continue.
Enter your input to see the result
Everything happens on this device. No upload, no account, no network request.
How to use this tool
- 1
Enter an em value and the relevant font size.
- 2
The result is the equivalent pixels.
Questions about EM to PX Converter
How does em differ from rem?
em is relative to the current element’s font size, which can compound when nested; rem is always relative to the root. This uses the single font size you enter.
Is anything sent anywhere?
No. The conversion runs entirely in your browser; the colours never leave the page.
Does the EM to PX Converter work offline?
Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the EM to PX Converter keeps working with the network switched off and nothing is ever sent to a server.
Is anything I enter into the EM to PX Converter uploaded or stored?
No. The EM to PX Converter runs in your browser, so whatever you type or paste never leaves your device — there is no server round-trip, nothing is logged, and there is nothing to delete afterwards.
Can I use the EM to PX Converter on a phone or tablet?
Yes. The page is responsive, so the EM to PX Converter works the same in a mobile browser as on a desktop, and there is no app to install.
Related tools
Other tools you might reach for next.
Convert a hex colour to RGB, with the colour in all common formats.
Convert an RGB colour to a hex code.
Convert a hex colour to HSL (hue, saturation, lightness).
Convert an HSL colour to a hex code.
Convert an RGB colour to HSL.
Convert an HSL colour to RGB.
Convert an RGB colour to CMYK (for print).