I know that conventionally the unit of $E$ in $E=mc^2$ is taken as joules when mass is in $\mathrm{kg}$. But I am doing some calculations of my own with different units of energy ($\mathrm{keV}$,$\mathrm{MeV}$ etc.). So my question is whether we have to convert $\mathrm{keV}$ or $\mathrm{MeV}$ to joules in order to calculate mass or we can keep the values of $\mathrm{KeV}$, $\mathrm{MeV}$ units and then find mass (I think this method is easier)? If we are keeping $\mathrm{keV}$ and $\mathrm{MeV}$ then what will be the unit of mass, will it still be $\mathrm{kg}$? I am a chemist so please forgive if I asked an irrational question.
Advanced thanks for your help