LocalToolkit
HomeImage Tools › Image Format Converter

Convert an Image Between Formats

Change the container, and understand the quality and transparency consequences before you do.

🔒 Runs in your browser. Nothing is uploaded — verify it in the network panel, or disconnect and try again.

Which format, for what

FormatBest forWatch out for
JPEGPhotographs; maximum compatibilityNo transparency; lossy on every save
PNGScreenshots, diagrams, logos, anything with transparencyHuge for photographs — it is lossless
WebPThe default for websites todayAnimation support is uneven in older editors
AVIFSmallest files on sites you controlSlow to encode; poorly supported in older desktop software
GIFShort animations, nostalgia256 colours, no alpha blending, inefficient
BMPLegacy Windows tooling and raw buffersUncompressed and enormous
SVGIcons, logos, line art at any sizeNot a raster format — converting it to pixels fixes a resolution
HEICPhotos from newer iPhonesPatented and unevenly supported outside Apple's ecosystem

The transparency rule that decides half of all conversions

JPEG has no alpha channel. Converting a PNG with a transparent background to JPEG forces a choice: the transparent areas must become some colour. Most encoders paint them black, which produces a logo with a black box behind it and confuses people who expected white. If you need transparency, the only lossy-capable candidates are WebP and AVIF; otherwise stay in PNG.

The text and screenshot rule that decides the other half

JPEG compression works on 8 × 8 pixel blocks and is tuned for gradual, photographic variation. Sharp black text on white is the worst possible input: those blocks contain extreme high-frequency detail, and the artefacts appear as coloured fringing and blocky edges around every letter. For screenshots, slides and diagrams, PNG is smaller and sharper — or WebP lossless, which is often a third smaller again than PNG with identical pixels.

Converting a vector to a raster is one-way

An SVG resized to 512 × 512 pixels becomes a bitmap forever. If the source might need to be printed or displayed at a larger size later, keep the SVG and render derivative bitmaps only for the specific places that need one. The reverse conversion — tracing a bitmap into an SVG — is a different operation that guesses at geometry and is never a faithful round-trip.

Quality settings do survive the conversion

How to use it

  1. Drop one or more images.
  2. Choose the target format.
  3. Set the quality if the target format is lossy.
  4. Convert, then verify transparency and edges before shipping.

Worth knowing

  • JPEG supports no alpha channel, so transparency must be flattened.
  • PNG is lossless, which is why it beats JPEG on screenshots but loses badly on photographs.
  • WebP and AVIF both support transparency and animation.
  • Format support depends on the codecs your browser exposes.

Limitations

  • HEIC, BMP, GIF and SVG can be read but not written by a browser canvas.
  • Animation is not preserved — an animated GIF becomes a single frame.
  • Metadata is discarded by the canvas round-trip.
  • Converting between lossy formats compounds artefacts.

Frequently asked questions

Why is my transparent logo black now?
Because JPEG has no alpha channel and the encoder filled transparency with black. Export to PNG for a transparent background, or WebP if you need a lossy file that keeps alpha.
Should I use PNG or JPEG for a screenshot?
PNG. Screenshots are exactly the content JPEG handles badly — sharp edges and flat colour — and PNG will often be both smaller and sharper. WebP lossless is a good alternative.
Can I convert HEIC to JPEG here?
Reading HEIC depends on whether your browser exposes an HEIC decoder, which is not universal. If your browser can display the file it can usually re-encode it; if it cannot, the file must be converted by the device or the operating system first.
Does converting to WebP lose quality?
If the source was JPEG, yes — the existing artefacts are preserved and then compressed again. Converting from the original PNG or the raw capture avoids that second generation of loss.
Related tools
Image CompressorImage ResizerImages to PDFPhoto Size CalculatorPassport Photo MakerCompress Image to 10 KB
Keep reading
How browser-only processing worksAll Image Tools toolsEvery tool on the site