Wrap JPEG pixels in a PNG container
The JPEG is decoded and saved as PNG. That does not restore detail the JPEG already threw away—it only changes the format.
The PNG may be larger than the JPEG because PNG is lossless relative to the decoded bitmap, not relative to the original camera file.
When you actually need PNG
Some print shops and editors want PNG. Screenshots that started as JPEG will not become crisp. If you still have the camera RAW or original PNG, convert from that instead.
Color and metadata
Color profile handling depends on the browser’s decoder. EXIF may be dropped. Conversion is local; nothing is uploaded.