Images

JPG to PNG Guide: Rendered Quality, Transparency and Batch Conversion

·

JPG to PNG conversion decodes a supported JPEG and encodes the rendered image as PNG. ToolMellow lets you keep its decoded dimensions or choose a maximum side, apply selected clockwise quarter turns and flips, inspect the results, then download individual PNG files or a batch ZIP.

PNG encoding is lossless for the rendered canvas output. That does not restore detail previously discarded by JPEG compression, remove an opaque background or certify original pixels, profiles or metadata. This guide explains the actual controls, bounded JPEG-header checks, orientation and file-size tradeoffs so you can compare the generated PNG with its source.

JPG to PNG

Choose JPEG sources and inspect the generated PNG

Use Choose images or drop local files into the workspace. Select up to 20 supported JPG/JPEG images and wait for preview reading to settle. Maximum side starts at 0, rotation at 0 and both flips off. Press Convert to PNG, inspect each result and its actual dimensions and size, then download individual PNGs or the completed batch ZIP.

The destination is fixed as PNG, with no output-format chooser or crop editor. Geometry choices apply to every selected file. Changing a setting or editing the queue clears previous results, so convert again after an adjustment. Keep the source separately; a new extension is not a certificate of improved image quality.

  • Inspect small text, edges and existing JPEG artifacts in the actual result.
  • Compare the generated file size before using a strict upload threshold.
  • Use an image editor for background removal or changes beyond these controls.

JPG and JPEG names do not replace strict source checks

JPG and JPEG are familiar filename suffixes for this source format. The picker hints .jpg, .jpeg and image/jpeg, while the worker checks JPEG header dimensions and successful browser decoding. A PNG or WebP renamed with a .jpg suffix does not become JPEG. A supported-looking damaged JPEG can still fail decoding.

The separate preview reader accepts the generic still JPG/PNG/WebP family, so a wrong source can show a thumbnail before strict JPEG conversion rejects it. This converter is not a complete JPEG-conformance audit and does not promise every JPEG coding mode or browser decoder will work. JPEG 2000, JPEG XL, video and multi-image frame-selection workflows are separate requirements.

JPG and JPEG names do not replace strict source checks
Input caseProcessing behavior
Supported JPEGHeader and decoded limits checked, then new PNG encoded
PNG/WebP with a .jpg nameCan preview, but strict JPEG processing rejects it
Damaged supported-looking JPEGCan fail decoding
Dimensions beyond the bounded header prefixSafely rejected before browser decoding

MDN: File API and user-selected filesMDN: createImageBitmap orientation and decoding optionsMDN image formats: JPEG and PNGJPEG committee: the JPEG 1 coding family

Large JPEG metadata can place dimensions beyond the header read

JPEG preflight reads at most 1048576 bytes from the start of the file. It walks recognized marker segments to find a supported dimension-bearing start-of-frame marker, stopping at start-of-scan or end-of-image. Unlike the PNG animation check in other tools, JPEG does not receive a whole-file header rescan here.

Large leading APP or comment segments can push dimension information beyond that prefix even when the full JPEG satisfies file-size and pixel ceilings and another decoder can open it. The tool then reports that dimensions could not be read safely. A fresh supported JPEG export with less leading metadata can help; there is no header-limit bypass or metadata editor in this workspace.

MDN: createImageBitmap orientation and decoding optionsJPEG committee: the JPEG 1 coding family

Source limits apply before optional downscaling

The full source must satisfy per-file bytes, decoded pixels and both side limits before a smaller output is drawn. Header geometry and actual oriented bitmap geometry are checked. MB ceilings are decimal, not MiB; choosing a tiny maximum side does not admit an oversized source.

Combined source bytes and encoded PNG bytes have separate budgets. The worker accumulates newly encoded image buffers and publishes the result list only after every file succeeds. One source, decoder, encoder or output-budget failure prevents a partial completed batch from appearing. ZIP wrapper overhead is outside the encoded-image sum.

Source limits apply before optional downscaling
BoundaryMaximum
Images per job20
Each source file25000000 bytes, inclusive
Each decoded source24000000 pixels
Each source side12000 pixels
Combined source files100000000 bytes, inclusive
Combined encoded PNGs100000000 bytes, inclusive

MDN: createImageBitmap orientation and decoding optionsMDN: OffscreenCanvas image encoding and quality

Lossless PNG encoding does not reconstruct a missing image history

PNG losslessly encodes the rendered canvas output. Existing JPEG artifacts, if present, remain part of the decoded image. Details previously discarded by a lossy JPEG encoding are not reconstructed by converting the file to PNG. The JPEG family also includes other coding modes; this workflow does not classify every source as an ordinary lossy photograph.

Optional resizing and browser color processing can change pixels before PNG encoding. A lossless output codec therefore does not imply original-byte, source-pixel or profile identity. Later editing can make further changes under that editor’s own settings; this conversion cannot guarantee lossless future edits or saves.

Lossless PNG encoding does not reconstruct a missing image history
RequirementWhat this conversion supplies
PNG encoding without discarding rendered samplesLossless encoding of the canvas output
Recovery of detail already discarded by JPEGNo reconstruction of lost detail
Exact source pixels after resizing/color processingNot a source-fidelity guarantee

W3C PNG format: lossless images and alphaWHATWG Canvas: default color space, component type and compositingMDN: createImageBitmap orientation and decoding optionsJPEG committee: the JPEG 1 coding family

PNG support for alpha does not create a cutout

Ordinary browser JPEG images have an opaque background. PNG can represent transparency, but merely converting such a JPG does not identify a subject, erase that background or recover an alpha channel that the source never contained. A white or colored source background remains image content.

The visible JPG background control starts at white but does not fill the PNG output; background filling is used for JPEG targets. Changing this irrelevant control still clears existing results through the shared settings flow. Use a separate editor when a transparent cutout is required, then inspect its PNG output rather than expecting a file-format change to remove a background.

W3C PNG format: lossless images and alphaMDN image formats: JPEG and PNGWHATWG Canvas: default color space, component type and compositing

Maximum side follows the selected rotation and flips

Maximum image side accepts whole numbers from 0 to 12000. Zero keeps the transformed decoded dimensions; a positive cap fits within that longest side without enlarging a smaller source and rounds to positive whole pixels. A cap above the source does not upscale it. Very small outputs can approximate the original aspect ratio through rounding.

The examples use decoded source dimensions of 4000 × 3000 unless another source is named. The worker applies your selected clockwise turn and flips in the rotated axes before optional downscaling. A 90-degree selection with a 1200-side cap becomes portrait; this control is not an exact width/height preset or a crop.

Maximum side follows the selected rotation and flips
Decoded source / selected rotationMaximum sideActual PNG dimensions
4000 × 3000 / 0°04000 × 3000
4000 × 3000 / 0°12001200 × 900
4000 × 3000 / 90°1200900 × 1200
600 × 400 / 90°1200400 × 600
3 × 2 / 0°11 × 1

MDN: Canvas drawImage source rectanglesMDN: Canvas clockwise rotation and transform originMDN: Canvas scale and negative-axis reflections

JPEG orientation comes before your chosen turn

The decoder requests image orientation from source metadata when present and supported. Preview information reports the decoded, oriented dimensions, which can differ from the raw JPEG header orientation. Your Rotate clockwise selection then acts on that decoded image, with 0, 90, 180 or 270 degrees. There is no fine-angle straightening control.

Flip horizontally after rotation reflects left/right in the current rotated output; Flip vertically after rotation reflects top/bottom there. Check an asymmetric image or readable text to verify direction. These are global queue settings, and sorting, reversing, moving or removing files retains the current angle and later angle changes.

MDN: createImageBitmap orientation and decoding optionsMDN: Canvas clockwise rotation and transform originMDN: Canvas scale and negative-axis reflections

The disabled quality slider is not a PNG size target

The shared quality display starts at 90, but its slider is disabled for this forced-PNG target. PNG encoding does not use the lossy JPEG/WebP quality request. There is no PNG compression-level, palette-quantization, color-count or exact-byte target control here. Lowering a JPEG-quality slider elsewhere is a different operation.

PNG can be substantially larger for photographic content, but actual sizes depend on the image and encoding. There is no always-smaller promise or Compress image original-file fallback: every successful result is a newly encoded PNG even if it grows. If you resize to reduce bytes, inspect the changed dimensions and lost spatial detail rather than treating it as a free quality improvement.

W3C PNG format: lossless images and alphaMDN: OffscreenCanvas image encoding and qualityMDN image formats: JPEG and PNG

Rendered colors and encoder metadata have their own scope

The app requests the default sRGB, unsigned-normalized 8-bit canvas setting rather than a higher-depth or wider-color canvas. Browser JPEG decoding and color conversion can affect rendered values. This workflow does not certify preservation of an original source profile, high-depth samples, print colors or source byte identity.

Original JPEG metadata segments are not copied by the canvas conversion. The PNG encoder may add its own format metadata, so the result is not universally metadata-free. Source orientation can affect the drawn pixels without copying the original orientation tag. Keep the original JPEG if its metadata, profile or source encoding is needed.

WHATWG Canvas: default color space, component type and compositingMDN: createImageBitmap orientation and decoding optionsMDN: OffscreenCanvas image encoding and qualityJPEG committee: the JPEG 1 coding familyW3C PNG format: lossless images and alpha

A source thumbnail is separate from final conversion

Input previews are PNG thumbnails with a longest side at most 640 pixels and no enlargement of smaller sources. They retain information about full decoded source dimensions. Export decodes the actual JPEG again rather than converting that small thumbnail into the result, so kept output dimensions can exceed the on-page preview.

The source thumbnail does not apply your final selected rotation, flips or downscaling. Inspect the generated PNG preview and actual output size/dimension comparison. Result byte counts can grow, shrink or happen to match; equal size does not mean identical JPEG and PNG contents or unchanged source metadata.

MDN: Canvas drawImage source rectanglesMDN: createImageBitmap orientation and decoding optionsMDN: OffscreenCanvas image encoding and quality

Arrange the queue and download actual PNG payloads

Use Move up/down, Remove, Sort by filename or Reverse order to arrange sources. Sorting uses the interface language with numeric comparison and base sensitivity, not a universal bytewise filename order. All images share the same settings, while result numbering follows the current queue.

Generated filenames use a cleaned source basename, PNG extension and prefix: photo.jpg in first position becomes 01-photo.png. MIME is image/png. Each result offers Download, Resize image and Make a PDF. More than one successful result enables Download all as ZIP, named toolmellow-images.zip, plus Make one PDF for the batch.

MDN: localeCompare and language-sensitive ordering

Recover from failures without assuming settings reset

If a non-JPEG previews but export fails, remove it and supply a supported JPEG. Oversized inputs, dimensions outside the header prefix and browser decoder, memory or encoder failures can also prevent conversion. The advertised ceilings are limits, not a guarantee every file below them will work. Smaller supported inputs or a fresh export can help.

The whole job has a 60-second timeout. Cancel terminates processing while retaining selected sources and does not expose a partial completed batch. Clear files removes files, previews and results but retains maximum side, rotation, flips and the shared quality/background values. New files inherit those choices. Setting changes require another conversion; downloaded files are not deleted.

MDN: Using Web WorkersMDN: Worker termination

Local image work and deliberate next-tool handoffs

You choose local files on the device; previews, JPEG decoding, transformations and PNG encoding run in a local browser worker. This tool has no remote-URL or cloud-drive image importer, server conversion endpoint or saved edit project. Ordinary hosting, asset and analytics requests remain separate from image-byte processing, without an anonymity or zero-logging guarantee.

Resize/PDF buttons deliberately transfer generated files to the destination through one-time in-memory state in the same tab, under that tool’s own limits. Refreshing or leaving discards this workspace. Keep originals separately, compare the actual output, and choose a background editor when the task requires creating transparency.

MDN: File API and user-selected filesMDN: Using Web Workers

Embed the converter with a visible ToolMellow backlink

Use Add this tool to your website on the localized tool page to copy or download the supplied HTML snippet. Retain its interactive iframe, sizing behavior and visible ToolMellow backlink with the existing link attributes. Select the intended language and give visitors room to inspect their images and the controls.

Visitors choose their own supported JPEG files and get the same forced-PNG, geometry, header and job-limit behavior. The snippet is not an API for automatically converting images hosted by your webpage or removing backgrounds. Test the embedded workflow in the intended browsers and layout, and keep the credit link visible.

Common questions

How do I convert JPG to PNG?

Choose supported local JPG/JPEG files, set an optional maximum side and selected rotation/flips, then press Convert to PNG. Inspect the generated dimensions and file sizes before downloading individual PNG files or the ZIP.

Does JPG to PNG improve image quality?

It does not recover JPEG detail already discarded or provide artifact-removal controls. PNG losslessly encodes the rendered output; resizing and browser color processing can change pixels before that encoding. Future edits depend on the editor used.

Will the PNG background become transparent?

No. Converting an ordinary opaque JPG does not remove its background or create a subject cutout. PNG supports alpha as a format, but this tool does not infer or recover missing transparency. Use an image editor for that task.

Why is the quality slider disabled?

This tool always writes PNG. The shared 90 display is not a PNG fidelity or compression percentage, and the lossy JPEG/WebP quality slider is disabled. There is no PNG compression-level or target-byte control.

Will the PNG always be smaller?

No. A PNG can be larger, especially for photographic content, and every successful conversion returns new PNG bytes. There is no original-JPEG fallback or guaranteed reduction. Compare the actual downloaded file.

Why does a non-JPG file show a preview?

The separate preview reader accepts generic still JPG/PNG/WebP. Export requires a valid JPEG source header and successful decoding. A thumbnail or renamed suffix does not prove strict JPEG conversion will accept the file.

Why can a JPEG with large metadata fail?

JPEG preflight looks for dimensions in at most 1048576 leading bytes and does not rescan the whole JPEG. Large leading metadata can move its frame dimensions outside that prefix. A fresh supported export with less leading metadata can help.

How do maximum dimensions and rotation interact?

The decoded image receives the selected clockwise 0, 90, 180 or 270-degree turn and flips in the rotated axes, then optional rounded maximum-side downscaling. Zero keeps transformed dimensions; positive caps never enlarge a smaller source.

Does the converter honor JPEG orientation?

The browser decoder requests orientation from source metadata when present and supported, before the selected user turn and flips. Preview/output dimensions refer to that decoded orientation. Original orientation metadata is not copied into the PNG.

Is original JPEG metadata copied?

The canvas path does not copy original JPEG metadata segments. The PNG encoder may write its own metadata. Source profile, higher-depth samples and byte identity are not guaranteed; keep the JPEG when those matter.

How do I download a batch ZIP?

Successfully convert more than one JPEG, then use Download all as ZIP. It contains the actual generated numbered PNG files. A failed input or output-budget failure prevents a partial completed batch from appearing.

Can I embed the JPG-to-PNG converter?

Yes. Use Add this tool to your website on the localized tool page to copy or download its HTML iframe snippet, keeping the visible ToolMellow backlink and sizing behavior. Visitors choose supported local files; it is not an automatic hosted-image API.

Can I create a PNG of an exact KB size?

There is no exact-byte target or automatic compression search. Optional downscaling can change dimensions and size, but no chosen KB threshold is guaranteed. Compare the returned bytes against your requirement.

Can this preserve the original JPEG bytes or every future edit?

No. Successful conversion creates a new PNG from the rendered canvas. Source encoding, profiles and metadata are not copied intact, and later editing/saving can make changes under another editor’s settings.

Sources and further reading

Put it into practice.

Related guides