Convert Image
Operator: Abdulla Al Fahad. How tools are built and checked
Image formats cause friction in small, annoying ways: a government form that accepts only JPG, a content management system that rejects WEBP downloads, a slide deck that wants PNG with a transparent background. Convert Image takes PNG, JPG, WEBP, GIF and BMP files and writes the whole batch out as PNG, JPG or WEBP, with a quality slider for the lossy targets and a background colour for transparent areas when the target is JPG.
HEIC files are refused with a message rather than misread, and before a WEBP batch starts the tool checks that your browser can really encode WEBP. Each image is decoded and re-encoded on a canvas in the tab. One file downloads on its own; several come back as a single ZIP.
Key features
- Input: PNG, JPG, WEBP, GIF (first frame) and BMP, up to 50 files of 25 MB and 50 megapixels each.
- Output: PNG, JPG or WEBP for the whole batch.
- Quality slider from 10 to 100 for JPG and WEBP output.
- Background colour for transparent areas when converting to JPG, white by default.
- Results table with each file's name, original type and size, new size and status.
- A single file downloads directly; several download as one ZIP, with duplicate names given a numeric suffix.
- Photos are turned upright using their EXIF orientation, and the converted files carry no EXIF or GPS data.
What changes between PNG, JPG, WEBP, GIF or BMP and PNG, JPG or WEBP
PNG stores every pixel exactly and supports transparency, which makes it right for logos, screenshots, diagrams and anything with sharp edges or text. For photographs it is the wrong choice on size: a 12-megapixel photo saved as PNG is commonly several times larger than the same photo as JPG.
JPG is lossy, has no transparency and is accepted almost everywhere, which is why upload forms ask for it. WEBP can be lossy or lossless and supports transparency; at a similar look it is often smaller than JPG for photos. Older desktop software and some upload forms still refuse it, though. When the tool writes WEBP, it uses the browser's lossy WEBP encoder with the quality you set.
GIF input is read as its first frame only; animation is not carried over to any output. BMP files are uncompressed or lightly compressed, so converting one to PNG or JPG almost always makes it much smaller. HEIC, the format recent iPhones use by default, is not supported in this version, and HEIC files are refused with a message rather than misread.
How it works
The tool reads the start of each file to find its real format and dimensions, refusing HEIC and anything above 50 megapixels before decoding. It then decodes the image with createImageBitmap, applying the EXIF orientation, or with an image element as a fallback. For a GIF, both return the first frame.
The picture is drawn onto a canvas at its full size. When the target is JPG, the canvas is first filled with your background colour so transparent pixels blend onto it; for PNG and WEBP the canvas stays transparent and the alpha channel is kept. The canvas is then encoded with toBlob in the chosen format, using the quality setting for JPG and WEBP.
Before using the output, the tool checks the type of the blob the browser produced. If it asked for WEBP and received something else, it reports an error for that file instead of saving a mislabelled one. Output names keep each file's base name with the new extension, and names that collide get -2, -3 and so on.
Common use cases
- An applicant's scanned signature was saved as PNG, but the visa portal accepts only JPG; converting with a white background gives a clean signature on white.
- A blogger has thirty WEBP images saved from a stock site that an older WordPress theme will not show in its gallery, and converts them all to JPG in one ZIP.
- A developer turns a folder of PNG screenshots into WEBP at quality 85 to make a documentation site load faster, keeping the transparency on interface cut-outs.
- A teacher receives a GIF meme to put in a worksheet built in an editor that only takes PNG and JPG, and converts its first frame to PNG.
- Someone clearing out an old Windows folder converts a set of BMP drawings to PNG, making each file much smaller with no loss.
How to use this tool
- Drop images onto the box or press Enter on it to choose files. Mixed input formats are fine.
- Choose the target format under Convert every image to.
- For JPG or WEBP, set the quality. For JPG, check the background colour.
- Click Convert images and watch the table fill in.
- Click Download for one file, or Download all to get a ZIP of every converted file.
Example
Three files: a 4000 × 3000 phone photo (3.8 MB JPG), a 1200 × 400 logo with a transparent background (48 KB PNG), and a 640 × 480 drawing (900 KB BMP)
Target: JPG, quality 80, background #ffffff
Target: WEBP, quality 80
Target: PNGWhat to expect (exact sizes vary with image content)
JPG: photo re-compressed at quality 80; logo on solid white with no transparency; drawing much smaller than the BMP
WEBP: photo often smaller than the JPG; logo with transparency kept; drawing much smaller than the BMP
PNG: photo several times larger than the JPG it came from; logo close to its original size; drawing smaller than the BMP with exact pixelsTips for best results
- Pick PNG for images with text, flat colours or transparency, JPG when a form or a person asks for JPG, and WEBP for pictures going on a website you control.
- For JPG output, set the background to the colour the image will sit on. A transparent logo converted with a white background looks wrong on a dark slide.
- Quality 85 to 90 is a safe choice when converting a PNG screenshot to JPG or WEBP, because text edges show artefacts sooner than photos do.
- Converting a JPG to PNG does not restore detail; it only stores the already-compressed pixels losslessly in a bigger file. Do it only when something specifically requires PNG.
- If two inputs share a base name, such as logo.png and logo.webp, the converted copies are named logo.jpg and logo-2.jpg so neither overwrites the other in the ZIP.
Edge cases to watch
Transparency is lost in JPG. Every partially or fully transparent pixel is blended onto the background colour, and soft shadows or anti-aliased edges are baked in against that colour.
An animated GIF becomes a still image. Only the first frame is converted.
Converting between lossy formats, such as JPG to WEBP, decodes and compresses again, so a little more detail is lost. Start from the best copy you have.
Some browsers cannot write WEBP at all; their canvas silently returns a PNG. The tool checks for this before converting and disables WEBP output with a message instead of giving you a PNG with a .webp name.
Common errors and how to fix them
- "photo.heic is HEIC, which this version does not support"
- Export the photo as JPG first: in the iPhone Photos app use Share > Save to Files after setting Settings > Camera > Formats to Most Compatible, or open it in Preview on a Mac and choose File > Export.
- WEBP is selected but the Convert button is disabled
- In browsers without a WEBP encoder, Convert Image disables WEBP output and shows a message instead of saving a PNG under a .webp name. Choose PNG or JPG, or open the page in a browser that can write WEBP.
- The JPG of a logo has a white box around it
- That is the background colour filling the transparent area, because JPG cannot store transparency. Pick the colour of the page the logo will sit on, or convert to PNG or WEBP instead.
- A file shows "The browser could not read this file as an image"
- The file is damaged or is not really the format its extension claims, for example a renamed HEIC or a truncated download. Open it in an image viewer to check, then save a fresh copy.
- "This image is ... megapixels. The limit is 50 megapixels"
- Decoding images that large can exhaust a browser tab's memory. Reduce the image in a desktop editor or your operating system's image viewer first, then convert the smaller copy.
Best practices
- Convert from the original, not from a copy that has already been through a lossy format.
- Keep transparent artwork as PNG or WEBP masters and make JPG copies only for the places that require them.
- When a website accepts WEBP, use it for photos; when you are sending files to people, JPG causes the fewest problems.
- Check the results table before downloading a ZIP; any file that failed is listed with the reason and left out of the archive.
Choosing between PNG, JPG and WEBP
The deciding questions are whether the image needs transparency, whether it is a photo or a graphic, and whether the place it is going accepts WEBP. A photo for an email attachment is a JPG. A logo for a website is a PNG or a WEBP. A screenshot with text stays sharpest as PNG.
WEBP covers more cases than either of the others because it can be lossy with transparency, something neither PNG nor JPG offers. Its weakness is compatibility outside browsers: some photo printing services, older Office versions and many upload forms will not take it.
- PNG: lossless, transparency, large for photos, best for text and graphics.
- JPG: lossy, no transparency, accepted almost everywhere, best for photos you send.
- WEBP: lossy here, transparency kept, often smaller for photos, best for websites.
How transparent pixels become a solid colour
A pixel in a PNG or WEBP can be partly see-through, which is how soft shadows and smooth edges on logos are drawn. JPG has no alpha channel, so each pixel must end up opaque. The tool paints the whole canvas in your background colour first and then draws the image over it, so a pixel that was 50 percent transparent black over white becomes mid-grey.
That blend is fixed in the JPG. If you convert a logo with a white background and later place it on a navy page, the soft edge will show as a pale fringe. Converting again from the original PNG with a navy background gives clean edges.
Frequently asked questions
Can I convert HEIC photos from an iPhone?
Not in this version. HEIC files are refused with a message. Set the iPhone camera to Most Compatible to shoot JPG, or export existing photos as JPG first.
Does converting a GIF keep the animation?
No. Only the first frame is read, and PNG, JPG and WEBP output from this tool are all still images.
Why is my PNG output so much bigger than the JPG I started with?
PNG stores pixels without loss, and a photo has millions of slightly different colours, so the lossless file is large. PNG does not improve a JPG's quality; it only stops further loss.
Is EXIF data kept when converting?
No. The converted file is written from pixels alone, so camera details, capture time and GPS location are not included. The orientation is applied first so the picture keeps its rotation.
What happens if two files would get the same name?
The second gets -2 before the extension, the third -3, and so on, so photo.png and photo.webp converted to JPG become photo.jpg and photo-2.jpg.