Skip to content

Image Format Converter

Convert images between JPG, PNG, WebP, and BMP formats entirely in your browser using the Canvas API.

Image Format Converter tool

Loading...

Example

Input: An 800 x 600 PNG of 13.6 KB converted to WebP at the default quality 0.92

Result: An 800 x 600 WebP of 6.3 KB (-53.4%) in our test. Size changes vary by image

The browser decodes the image and re-encodes it through the Canvas API. AVIF only works where the browser can encode it; otherwise a PNG is saved and noted.

Image Formats at a Glance

FormatCompressionTransparencyOutput here
JPEGLossy, quality sliderNo (filled white)Always
PNGLosslessYesAlways
WebPLossy, quality sliderYesMost browsers, else PNG
AVIFLossyYesOnly if browser can encode
BMPNone, 24-bitNo (filled white)Always
GIFLossless, 256 colorsYesInput only, first frame

Output behavior taken from the converter; other programs may offer more options.

  1. Upload an image in any supported format (JPG, PNG, WebP, GIF, AVIF, or BMP).
  2. Select the target output format from the format dropdown.
  3. Adjust the quality setting for lossy formats like JPEG and WebP, then click Reprocess.
  4. Preview the converted image and compare file sizes between formats.
  5. Download the converted image file to your device.

JPG vs PNG vs WebP: Choosing an Image Format

The Image Format Converter changes an image from one format to another, for example PNG to JPG or WebP to PNG. You can save as JPEG, PNG, WebP or BMP, and as AVIF where your browser supports it. The tool shows the new file size next to the old one.

Each format has a job. JPEG is the standard for photos: small files, lossy compression and no transparency. PNG is lossless and keeps transparency, which suits logos, screenshots and graphics with text. WebP does both jobs in a smaller file and works in all current major browsers. BMP stores raw pixels with no compression. It is huge, but some older programs need it. AVIF compresses very well, but few browsers can create it from a web page. If yours cannot, the tool saves PNG and tells you.

The quality slider applies to JPEG and WebP, with 92% as the default. Lower it for smaller files. Converting a JPEG to PNG will not bring back lost detail. It only stores the current pixels without further loss, usually in a bigger file. JPEG and BMP have no transparency, so transparent areas become white.

You can upload any image your browser can open, such as JPEG, PNG, WebP, GIF, BMP or AVIF, up to 20 MB. An animated GIF becomes a still image of its first frame. The image is redrawn in your browser, so metadata like camera details and GPS location is not carried over. To reduce size further, try the Image Compressor. To embed the result in code, use Image to Base64.

Sources

Frequently Asked Questions

Use JPG for photos, where it gives much smaller files with little visible loss. Use PNG for logos, icons, screenshots and anything with sharp edges, text or transparency. JPG blurs sharp edges slightly and cannot store transparent areas. If you are not sure, WebP handles both cases well in modern browsers.
Upload the WebP file, choose JPEG or PNG as the output format, and click Reprocess if you changed the setting after uploading. Pick PNG to keep transparency and every pixel, or JPEG for a smaller photo file that opens in almost any program.
PNG is lossless, so it stores every pixel exactly. Photos have lots of fine variation, which PNG cannot compress as well as JPEG or WebP. A 500 KB JPEG photo can easily become several megabytes as PNG. That is normal, and the quality is not improved by the switch.
Your browser can display AVIF but cannot create it from a web page, which is true of most browsers today. When that happens the tool saves a PNG instead and adds a note. WebP is the best widely supported alternative for small, high-quality files.
Yes for PNG, WebP and AVIF output. JPEG and BMP cannot store transparency, so transparent areas are filled with white. If you need a transparent background, avoid JPEG. For logos on colored backgrounds, PNG or WebP is the safe choice.

Related Tools

Image Compressor

Compress images client-side with an adjustable quality slider. Compare before and after file sizes instantly.

Image and Media

SVG to PNG Converter

Convert SVG vector files to PNG raster images at any resolution directly in your browser using canvas.

Image and Media

Image to Base64 Converter

Convert any image file to a Base64-encoded string instantly in your browser. No server upload required.

Image and Media

Image Resizer

Resize images to exact pixel dimensions with an optional aspect ratio lock, entirely in your browser.

Image and Media

Images to PDF

Combine multiple JPG, PNG, or WebP images into a single PDF document. Reorder and adjust page size.

PDF Tools

Image EXIF Viewer

Read and display EXIF metadata from photos - camera model, GPS coordinates, date, aperture, ISO, and more.

Image and Media