Skip to content
Back to Blog
How-To

How to Convert JPG to PNG: 7 Free Methods in 2026

April 5, 20269 min read

How to Convert JPG to PNG

JPG is the most widely used image format in the world. It dominates photography, social media, and web content because of its efficient lossy compression. But JPG has limitations that matter: no transparency support, lossy compression that degrades quality with each save, and visible artifacts in images with sharp edges or text.

PNG solves all of these problems. It supports transparent backgrounds, uses lossless compression that preserves every pixel, and handles graphics, text, and screenshots without artifacts. That is why converting JPG to PNG is one of the most common image conversion tasks — whether you are preparing logos with transparent backgrounds, editing images that need repeated saves, or working with platforms that require PNG uploads.

This guide covers seven free methods to convert JPG to PNG in 2026, from instant browser-based tools to command-line batch processing.

Why Convert JPG to PNG?

Before choosing a method, understand when this conversion actually makes sense:

ReasonExplanation
Transparency neededPNG supports alpha channels; JPG does not. Logos, icons, and overlays require PNG.
Lossless editingEach JPG save recompresses and degrades quality. PNG preserves quality across unlimited edits.
Sharp text and graphicsJPG compression creates artifacts around text and hard edges. PNG renders them perfectly.
Screenshot archivalScreenshots contain text and UI elements that JPG artifacts degrade. PNG preserves them exactly.
Print workflowsSome print shops and design tools require PNG for its lossless quality and transparency.
Platform requirementsCertain CMS platforms, design tools, and upload forms accept only PNG.

Important caveat: Converting JPG to PNG does not restore quality that was already lost during JPG compression. The conversion is lossless going forward — it preserves the current state of the image without further degradation — but it cannot undo existing JPG artifacts. If you need the highest quality, always start from the original uncompressed source when possible.

JPG vs PNG: Key Differences

FeatureJPGPNG
CompressionLossy (smaller files, some quality loss)Lossless (larger files, perfect quality)
TransparencyNot supportedFull alpha channel support
Best forPhotographs, web images, social mediaLogos, graphics, screenshots, text-heavy images
Color depth8-bit (16.7 million colors)8-bit or 16-bit (trillions of colors)
AnimationNot supportedNot supported (APNG is separate)
File size (typical photo)200-500 KB1-3 MB
Browser supportUniversalUniversal
Editing resilienceDegrades with each saveNo degradation across saves

For a comprehensive comparison, see our full JPG vs PNG guide.

Method 1: Browser-Based Converter (Fastest, Most Private)

The fastest way to convert JPG to PNG is with a browser-based converter that processes files entirely on your device. Your images never leave your computer — no uploads, no servers, no privacy risks.

Steps:

  • Open PhotoFormatLab's JPG to PNG converter
  • Drag and drop your JPG file (or click to browse)
  • Click Convert to PNG
  • Download your PNG file
  • Why this method wins:

  • Privacy: Files are processed locally in your browser — nothing is uploaded to any server
  • Speed: Conversion takes under a second for most images
  • No limits: Convert as many files as you want with no daily caps or file size restrictions
  • Batch support: Drop multiple JPG files to convert them all at once using the batch converter
  • Transparency: Add transparent backgrounds during or after conversion
  • This is the best option for anyone who values privacy or needs to convert images quickly without installing software.

    Method 2: Mac Preview

    macOS Preview handles JPG to PNG conversion natively with no additional software needed.

    Steps:

  • Right-click your JPG file and select Open With > Preview
  • Click File > Export in the menu bar
  • In the Format dropdown, select PNG
  • Choose your save location and click Save
  • For batch conversion on Mac, select multiple JPG files in Finder, right-click, and open them all in Preview. Then select File > Export Selected Images, choose PNG as the format, and export all at once.

    Limitations: Preview does not offer PNG compression settings. Files are saved at full quality, which means file sizes will be significantly larger than the original JPGs. For high-resolution photos, expect 3-5x larger PNG files.

    Method 3: Windows Paint

    Microsoft Paint is the simplest option for Windows users who need to convert one or two files quickly.

    Steps:

  • Right-click the JPG file and select Open with > Paint
  • Click File > Save as > PNG picture
  • Choose your save location and click Save
  • Limitations: Paint converts one file at a time with no batch support. For multiple files, use PhotoFormatLab's batch converter or the command-line methods below.

    Method 4: Windows PowerShell (Batch)

    For Windows users who need to convert many JPG files at once, PowerShell provides a built-in solution without installing any additional software.

    Convert all JPGs in a folder:

    ```powershell

    Get-ChildItem -Filter *.jpg | ForEach-Object {

    $img = [System.Drawing.Image]::FromFile($_.FullName)

    $newName = $_.FullName -replace '\.jpg$', '.png'

    $img.Save($newName, [System.Drawing.Imaging.ImageFormat]::Png)

    $img.Dispose()

    }

    ```

    This script loads each JPG, saves it as PNG using the .NET imaging library, and properly releases the file handles. No third-party tools needed.

    Method 5: Command Line with ImageMagick

    ImageMagick is the industry-standard command-line tool for image conversion. It handles virtually every image format and provides fine-grained control over output quality.

    Install:

    ```bash

    # macOS (Homebrew)

    brew install imagemagick

    # Ubuntu/Debian

    sudo apt install imagemagick

    # Windows (Chocolatey)

    choco install imagemagick

    ```

    Convert a single file:

    ```bash

    magick input.jpg output.png

    ```

    Batch convert all JPG files in a directory:

    ```bash

    for f in *.jpg; do magick "$f" "${f%.jpg}.png"; done

    ```

    Convert with maximum PNG compression (smaller files):

    ```bash

    magick input.jpg -quality 95 output.png

    ```

    For PNG, the -quality flag controls compression level (not visual quality since PNG is lossless). Higher values mean smaller files but slower encoding.

    Method 6: FFmpeg

    FFmpeg handles JPG to PNG conversion alongside hundreds of other format transformations. If you already have FFmpeg installed for video work, it is a convenient option.

    Install:

    ```bash

    # macOS

    brew install ffmpeg

    # Ubuntu/Debian

    sudo apt install ffmpeg

    # Windows (Chocolatey)

    choco install ffmpeg

    ```

    Convert a single file:

    ```bash

    ffmpeg -i input.jpg output.png

    ```

    Batch convert:

    ```bash

    for f in *.jpg; do ffmpeg -i "$f" "${f%.jpg}.png"; done

    ```

    FFmpeg is overkill for image-only work, but it is ideal if you already have it installed for video or audio processing.

    Method 7: Python with Pillow

    For developers and anyone comfortable with Python, the Pillow library handles JPG to PNG conversion in just a few lines of code.

    Install:

    ```bash

    pip install Pillow

    ```

    Convert a single file:

    ```python

    from PIL import Image

    img = Image.open("input.jpg")

    img.save("output.png")

    ```

    Batch convert all JPG files in a directory:

    ```python

    from pathlib import Path

    from PIL import Image

    for jpg_file in Path(".").glob("*.jpg"):

    img = Image.open(jpg_file)

    img.save(jpg_file.with_suffix(".png"))

    print(f"Converted {jpg_file.name}")

    ```

    Convert and add a transparent background:

    ```python

    from PIL import Image

    img = Image.open("input.jpg").convert("RGBA")

    # Make white pixels transparent

    data = img.getdata()

    new_data = []

    for item in data:

    if item[0] > 240 and item[1] > 240 and item[2] > 240:

    new_data.append((255, 255, 255, 0))

    else:

    new_data.append(item)

    img.putdata(new_data)

    img.save("output_transparent.png")

    ```

    This is especially useful for automating conversions in build pipelines, CI/CD workflows, or data processing scripts.

    Which Method Should You Use?

    MethodBest ForBatch SupportPrivacySetup Required
    PhotoFormatLabQuick conversion, privacyYesFiles stay localNone
    Mac PreviewmacOS users, small batchesLimitedLocalNone
    Windows PaintWindows users, single filesNoLocalNone
    PowerShellWindows batch conversionYesLocalNone
    ImageMagick (CLI)Power users, large batchesYesLocalInstall ImageMagick
    FFmpegDevelopers, existing workflowsYesLocalInstall FFmpeg
    Python PillowAutomation, scriptingYesLocalInstall Python + Pillow

    For most people, the browser-based converter at PhotoFormatLab is the best choice — it is instant, private, and handles batch conversion without any setup.

    For developers who regularly process images, ImageMagick or Python with Pillow gives you scriptable, automatable conversion with full control.

    File Size Expectations

    Converting JPG to PNG always increases file size because PNG uses lossless compression while JPG uses lossy compression. Here is what to expect:

    Image TypeJPG SizePNG SizeIncrease
    Standard photograph300 KB1.5 MB~400%
    High-resolution photo (4K)800 KB4-8 MB~500-900%
    Screenshot with text150 KB200 KB~33%
    Simple graphic/logo50 KB30 KBSmaller (PNG wins)
    Chart or diagram80 KB60 KBSmaller (PNG wins)

    Key insight: For photographs, PNG files are significantly larger. For graphics, screenshots, and images with flat colors, PNG can actually produce smaller files than JPG because its compression algorithm excels at areas of uniform color. This is why PNG is the preferred format for screenshots and UI elements.

    If file size is critical and you are converting photographs, consider WebP or AVIF instead — both offer transparency support with dramatically smaller files than PNG.

    Adding Transparency After Conversion

    One of the most common reasons to convert JPG to PNG is to add a transparent background. JPG does not support transparency at all, so the conversion to PNG is a necessary first step.

    After converting to PNG, you can make backgrounds transparent using:

  • PhotoFormatLab: Our converter outputs PNG files that you can then process with any image editor to remove backgrounds
  • Remove.bg or similar AI tools: Automatically detect and remove backgrounds from portrait photos
  • Photoshop/GIMP: Use the magic wand or quick selection tool to select and delete the background
  • Canva: Upload your PNG and use the background remover feature
  • The process:

  • Convert JPG to PNG using any method above
  • Open the PNG in your preferred editor
  • Select the background area
  • Delete it (the area becomes transparent in PNG)
  • Save as PNG to preserve the transparency
  • For product photography, logos, and headshots, removing the background after JPG-to-PNG conversion is one of the most practical workflows in image editing.

    When Not to Convert JPG to PNG

    Converting JPG to PNG is not always the right choice. Keep your files as JPG when:

  • Web performance matters: JPG files are 3-5x smaller than PNG for photographs. Serving PNG photos on websites slows page load times and hurts SEO.
  • Storage is limited: If you are batch converting thousands of photos, the storage requirements multiply significantly.
  • No transparency needed: If you do not need transparent backgrounds, JPG's smaller file sizes are the better trade-off for photographs.
  • Social media sharing: Most social platforms recompress images anyway. Uploading larger PNGs gains nothing since the platform converts them to JPG internally.
  • For web images where you need both small file sizes and transparency, WebP is the better target format — it offers 25-35% smaller files than PNG with full transparency support. See our best image format for websites guide for a detailed comparison.

    Frequently Asked Questions

    Does converting JPG to PNG improve image quality?

    No. Converting JPG to PNG preserves the current quality exactly — it does not degrade further, but it also cannot restore quality lost during the original JPG compression. The conversion is lossless going forward, meaning no additional quality is lost, but existing JPG artifacts remain. For the highest quality, always start from the original uncompressed source.

    Why are PNG files so much larger than JPG?

    JPG uses lossy compression that discards visual data humans are unlikely to notice, achieving very small file sizes. PNG uses lossless compression that preserves every pixel, resulting in larger files. For photographs, expect PNG files to be 3-5x larger than JPG equivalents. For graphics and screenshots, the difference is much smaller and PNG can sometimes be smaller.

    Can I add a transparent background to a JPG?

    Not directly — JPG does not support transparency. You must first convert the JPG to PNG (which supports transparency), then remove the background using an image editor or AI background removal tool. PhotoFormatLab's JPG to PNG converter handles the first step instantly.

    Can I batch convert hundreds of JPG files to PNG?

    Yes. PhotoFormatLab's batch converter handles multiple files at once entirely in your browser. For very large batches (thousands of files), the command-line tools (ImageMagick, FFmpeg, or Python Pillow) are more efficient since they avoid browser memory constraints.

    Is it safe to convert JPG to PNG online?

    It depends on the tool. Server-based converters upload your files to remote servers, creating privacy and security risks. Browser-based converters like [PhotoFormatLab](/) process everything locally — your files never leave your device. For personal photos or sensitive images, always choose a browser-based tool. Read our full guide to safe image conversion online.

    Should I convert JPG to PNG or WebP?

    It depends on your use case. Choose PNG when you need universal compatibility, lossless quality, or support in older software and print workflows. Choose WebP when you need small file sizes with transparency for web use — WebP files are 25-35% smaller than PNG with similar quality. See our WebP vs PNG comparison for a detailed breakdown.

    Ad
    Ad