JPG to PNG converter
Convert JPG to PNG locally, keeping dimensions after orientation.
Choose a file and settings
Choose one 8-bit grayscale or RGB JPG/JPEG file.
About this tool
Renaming an extension is not conversion. This converter reads JPG pixels locally and encodes a new PNG with browser Canvas. PNG cannot recover detail already lost in JPG and is often larger. Dimensions are retained after image orientation is applied.
How to use the calculator
- Choose a JPG file; remote image URLs are not accepted.
- Select “Convert”, review the preview and size, then download PNG.
Calculation details
Formula and calculation method
JPG headers are checked before decoding. createImageBitmap applies orientation, sRGB Canvas draws the pixels and toBlob encodes image/png. Output format is verified.
Worked example
An 800 × 600 px JPG without rotation produces an 800 × 600 px PNG. This is a new file, not recovery of the original photograph. A 90° orientation can swap width and height.
Limitations
- Project limits: 15 MiB input, up to 8192 px per side, 12,000,000 pixels and 50 MiB output. Images are not automatically resized. Empty, corrupt or unsupported files return an error, not partial output.
- No APNG, MPO, multipage files, SVG, GIF, WebP or HEIC. JPG: 8-bit baseline or progressive, grayscale or RGB; CMYK JPEG is unsupported. Pixel decoding depends on the browser.
- Canvas does not copy original EXIF, GPS, descriptions or profiles as archival metadata. Orientation and colour handling depend on the browser. No identical-pixel, colour, DPI or smaller-file guarantee; this is not certified data sanitization.
Sources
- W3C — PNG, transparency, structure and APNG
- ITU-T T.81 — JPEG standard
- MDN — Canvas toBlob, format and encoding quality
- MDN — createImageBitmap, orientation and colour
Engine version: 1.0.0 · Last reviewed: 2 October 2026
Frequently asked questions
Is renaming the extension enough?
No. We create a new file from decoded pixels and check its actual format, not only its name.
Will output be smaller?
There is no guarantee. Size depends on content, format and browser encoder. Keep the original and compare sizes.
Will PNG improve JPG quality?
No. PNG cannot recover detail lost in JPG compression. It changes the format of the decoded image.
Is the file or colour uploaded?
No. Processing happens in the browser without adding input or output to analytics, the URL or form history. Loading the page connects to hosting. Clipboard copies, downloads and browser extensions remain outside reset control.