Convert JPG images to lossless PNG right in your browser. Drag and drop a file, preview before and after, and compare file sizes — all computed client-side with the Canvas API.
Drag and drop a JPG image here, or click below to browse.
JPG (or JPEG) uses lossy compression tuned specifically for photographic content, discarding the color and detail information human vision is least sensitive to in exchange for dramatically smaller files — this makes it the default choice for photos across the web, but it comes at the cost of some information being permanently gone, and every re-save of a JPG loses a little more. PNG (Portable Network Graphics) takes the opposite approach: lossless compression that preserves every pixel of the source exactly, with no information discarded, at the cost of larger files for photographic content.
Converting from JPG to PNG doesn't undo any quality already lost to JPG's lossy compression — it simply takes a faithful, exact snapshot of the image as it currently exists and re-encodes it in a format that won't lose any further quality on subsequent saves. This is precisely why PNG is the standard choice as an intermediate, working format during image editing, even when JPG will ultimately be the final delivery format once editing is complete.
Every time a JPG is opened by an image editor, modified, and saved again as JPG, the lossy compression algorithm runs again on data that's already been through it at least once before — each pass can introduce new compression artifacts on top of whatever's already there, compounding over successive edit-and-save cycles even if the edits themselves are minor. This effect, often called generation loss, is why professional and careful image workflows typically convert to a lossless intermediate format (PNG, or a dedicated raw/working format) before any editing begins, then only export back to JPG once as a final delivery step.
This matters even for something as simple as cropping or adding a text overlay to an existing JPG — if you crop a JPG and save it as JPG again, you've taken a hit on quality that a PNG-based edit-then-convert-once workflow would have avoided entirely. Converting to PNG first costs you nothing in quality (since PNG faithfully preserves whatever the JPG currently contains) and protects every subsequent edit from adding further compression artifacts until you're ready to export a final version.
This tool decodes your JPG using the browser's built-in image decoder, draws the resulting pixel data onto an in-memory HTML canvas at the image's original dimensions, and then exports that canvas as a PNG using the browser's built-in PNG encoder — all through standard, well-supported browser APIs with no server round-trip or third-party service involved. Because canvas operates on decoded pixel data rather than the original file's compressed byte stream, the output PNG is a faithful, lossless representation of exactly what the JPG currently displays, complete with whatever compression artifacts were already baked into it.
This pixel-level approach is also why the conversion is fast and doesn't require any format-specific parsing logic beyond what the browser already provides natively — the same decode-and-redraw technique underlies most browser-based image format conversion tools, since Canvas has broad, standardized support for reading nearly any image format the browser itself can display and exporting to any format the browser's encoder supports.
Convert before editing whenever you'll be making multiple rounds of edits and re-saves to an image you received as JPG, to avoid compounding lossy compression artifacts across each save. Convert when a destination system specifically requires or strongly prefers PNG — certain upload forms, print workflows, or downstream tools that assume lossless input. Convert when you need PNG's technical capabilities even if you don't need transparency in this particular image, such as feeding the file into a pipeline that only accepts PNG.
It's generally not worth converting a JPG to PNG purely for final delivery or long-term storage if you don't need any of these benefits — the resulting file will simply be larger with no corresponding gain, since PNG can't restore quality the original JPG compression already discarded. In that case, keeping the image as JPG (or, if you're starting fresh, capturing or exporting directly to PNG in the first place) is the more practical choice.
JPG to PNG Converter is one direction of image format conversion. These related image tools cover the reverse conversion and other common image preparation tasks.