Open your image with MS Paint or GIMP or any other paint program and save as, where it says save type as choose jpg instead of png.
If you're talking about doing this in code or doing multiple files at teh same time then that is complicated and I'd rather explicitly know that that is what you...