Converting pixels to em values

How can I convert pixels to ems? I’m asking this because sometimes I see a font that I like at a size that I like, and I’d quite like to use it at the exact same size, but using ems to make it more flexible.

Is there a simple ratio for converting, or will I have to keep doing it by eye?

Thanks :slight_smile: