Convert JPG to PNG
Turn JPG photos into PNG. Same pixels, turned upright by the orientation tag, with CMYK made RGB.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop JPG files on the dialor turn it to pick what to do
A PNG with the same pixels as your JPG.The image is lossless from here on, and it comes out upright.
What you get
A PNG with the same pixels as the JPG. The image is turned upright by its orientation tag, so a photo that was stored sideways opens the right way up.
If the JPG is CMYK, the PNG is RGB.
What changes
PNG is lossless, so the file is usually several times larger than the JPG. The pixels stay the same, but the file takes more room.
A JPG has no transparency, so the PNG has none to carry over. Converting does not bring back detail that JPG compression already removed.
Options
Set Max width or Max height to shrink a large image while keeping its shape. Images that are already smaller stay as they are, so nothing is enlarged.
Turn on Grayscale to turn colors into shades of gray, which often makes the file smaller. Set Rotate to turn the result clockwise by 90, 180 or 270 degrees.
Turn on Strip metadata to remove EXIF data, such as the camera, the time and the GPS position, along with the color profile. The file gets a little smaller and says less about where it came from.
When it fails
If the file cannot be parsed, the conversion stops with
input_corrupted. This means the JPG is damaged or is not a readable image.
JPG and PNG.What each format is, and the options this conversion takes.
- 01 · grayscale
Grayscale
Turns colors into shades of gray, which often makes the file smaller.
- 02 · max_height
Max height (px)
Shrinks anything taller than this, keeping its shape. Anything shorter stays as it is, so nothing is ever enlarged.
1 to 20000 - 03 · max_width
Max width (px)
Shrinks anything wider than this, keeping its shape. Anything narrower stays as it is, so nothing is ever enlarged.
1 to 20000 - 04 · rotate
Rotate
Turns the result clockwise by a quarter, a half or three quarters.
90 · 180 · 270 - 05 · strip
Strip metadata
Removes EXIF and other metadata, such as the camera, the time and the GPS position a photo was taken at, and the color profile. The file gets a little smaller and says less about where it came from.
The formats
JPEG
Lossy photo compression that every device and browser opens. Small files, no transparency.
- Extensions
- .jpg .jpeg .jfif .jpe
- MIME type
- image
/jpeg - Kind
- Images
PNG
Lossless raster images with an alpha channel. Screenshots, icons and graphics with sharp edges.
- Extensions
- .png
- MIME type
- image
/png - Kind
- Images
In your code.The same JPG to PNG conversion through the API, for your app or your agent.
$ cv convert photo.jpg photo.png$ cv convert photo.jpg photo.pngQuestions.What people ask about JPG to PNG.
The pixels are the same as in the JPG. PNG does not add back detail that JPG compression already removed.
PNG is lossless, so the file is usually several times larger than the JPG. Set Max width or Max height, or turn on Grayscale, to reduce it.
Yes. The image is turned upright by its orientation tag. Set Rotate if you want to turn it further.
Not by default. Turn on Strip metadata to remove EXIF data such as the camera, the time and the GPS position, along with the color profile.