How to Convert JPG to PNG: 7 Free Methods in 2026
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:
| Reason | Explanation |
|---|---|
| Transparency needed | PNG supports alpha channels; JPG does not. Logos, icons, and overlays require PNG. |
| Lossless editing | Each JPG save recompresses and degrades quality. PNG preserves quality across unlimited edits. |
| Sharp text and graphics | JPG compression creates artifacts around text and hard edges. PNG renders them perfectly. |
| Screenshot archival | Screenshots contain text and UI elements that JPG artifacts degrade. PNG preserves them exactly. |
| Print workflows | Some print shops and design tools require PNG for its lossless quality and transparency. |
| Platform requirements | Certain 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
| Feature | JPG | PNG |
|---|---|---|
| Compression | Lossy (smaller files, some quality loss) | Lossless (larger files, perfect quality) |
| Transparency | Not supported | Full alpha channel support |
| Best for | Photographs, web images, social media | Logos, graphics, screenshots, text-heavy images |
| Color depth | 8-bit (16.7 million colors) | 8-bit or 16-bit (trillions of colors) |
| Animation | Not supported | Not supported (APNG is separate) |
| File size (typical photo) | 200-500 KB | 1-3 MB |
| Browser support | Universal | Universal |
| Editing resilience | Degrades with each save | No 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:
Why this method wins:
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:
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:
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?
| Method | Best For | Batch Support | Privacy | Setup Required |
|---|---|---|---|---|
| PhotoFormatLab | Quick conversion, privacy | Yes | Files stay local | None |
| Mac Preview | macOS users, small batches | Limited | Local | None |
| Windows Paint | Windows users, single files | No | Local | None |
| PowerShell | Windows batch conversion | Yes | Local | None |
| ImageMagick (CLI) | Power users, large batches | Yes | Local | Install ImageMagick |
| FFmpeg | Developers, existing workflows | Yes | Local | Install FFmpeg |
| Python Pillow | Automation, scripting | Yes | Local | Install 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 Type | JPG Size | PNG Size | Increase |
|---|---|---|---|
| Standard photograph | 300 KB | 1.5 MB | ~400% |
| High-resolution photo (4K) | 800 KB | 4-8 MB | ~500-900% |
| Screenshot with text | 150 KB | 200 KB | ~33% |
| Simple graphic/logo | 50 KB | 30 KB | Smaller (PNG wins) |
| Chart or diagram | 80 KB | 60 KB | Smaller (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:
The process:
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:
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.