Image Format Converter
What it does
The Image Format Converter takes any image and re-encodes it as a different format: PNG, JPG, or WebP. The conversion runs in the browser via canvas, so the file does not upload anywhere. When converting from a format that supports transparency (PNG, WebP) to one that does not (JPG), a background colour picker fills what would have been transparent pixels. Choose the page background or your brand colour to avoid the default white showing where you did not want it.
Common situations
You’re modernising image assets on a site that has lived as PNG-everything for ten years. Converting photographs to WebP shaves 30–40% off file weight with no visible loss. Doing this in batch via a build tool is faster, but for the dozens of one-off images that live outside the build pipeline (legacy uploads, marketing one-offs, manually committed files), per-image conversion fills the gap.
You’re preparing creative for an ad network that historically rejected WebP and required JPG. Some platforms have updated, some haven’t. When the upload silently fails, having a JPG copy ready bypasses the diagnostic question “is this rejected because of format?”.
You’re inheriting brand assets in formats that don’t match the site’s needs. The agency delivered PNGs of photographs (large file sizes, transparency you don’t need); converting to JPG with a brand-colour background produces appropriate-weight assets and removes the visual mismatch of unintended transparency.
You’re producing creative for a print preflight check that rejects images with alpha channels. Print workflows typically want JPG (or TIFF, which this tool does not produce); a transparent PNG fails the check. Converting to JPG with the right background colour passes preflight and matches the artwork’s intended appearance.
You’re consolidating assets after a migration. The source CMS exported a mix of PNG, JPG, and GIF; the destination prefers a uniform WebP-everything-where-supported policy. Per-image conversion as part of the migration cleanup produces uniform output.
What you need to know
Each format makes different trade-offs. PNG uses lossless DEFLATE compression and supports a full alpha channel: every pixel can have any opacity. JPG uses lossy DCT-based compression and does not support transparency at all; opaque-only output. WebP supports both lossy and lossless modes, full alpha channel, and produces smaller files than JPG or PNG at equivalent quality.
When the target format does not support transparency (JPG), the canvas needs to fill the alpha channel with something. White is the default; the tool exposes that as a colour picker so you can match a specific background. Without that step, transparent regions in the source become white in the output, which is rarely what you wanted on a page that uses a coloured background.
Quality for lossy targets is fixed at a sensible default in this tool: quality 92, which produces near-imperceptible loss. For fine-grained quality control alongside conversion, the Image Compressor is the right tool to use after conversion (or instead of it, if quality control is the goal).
Format choice rules of thumb: Photographs work best as JPG or WebP (lossy). Graphics with sharp edges or text suit PNG or WebP (lossless). Anywhere transparency is needed, PNG or WebP are the only options. For pure file-size minimisation, WebP is currently the most efficient mainstream format. For maximum compatibility with old systems, JPG remains the safe choice.
Animated formats (animated GIF, animated WebP, AVIF animation) cannot convert in this tool. Animation requires frame-by-frame processing and frame-aware encoding the canvas API does not directly support. For animated content, use FFmpeg or a dedicated GIF/animation tool.
Modern browsers all support AVIF (the next-generation format, smaller still than WebP). The tool does not currently output AVIF because in-browser AVIF encoding is slow and resource-intensive. Practical AVIF generation belongs in build pipelines. If AVIF is the target, a CLI tool (avifenc or sharp in Node) is the right choice.
Frequently asked questions
What’s the best format for web images in 2026?
WebP for almost everything. Smaller files than JPG or PNG at equivalent quality, full transparency support, supported by every browser released after 2020. The default for new web work; older sites benefit from converting their JPG/PNG library to WebP.
Should I convert PNG to JPG to save space?
Only for photographs. PNG-to-JPG of a photograph saves significant space; PNG-to-JPG of a graphic with sharp edges or text introduces visible artefacts. For graphics, prefer PNG-to-WebP: same lossless transition, smaller files.
Why does my converted JPG have a white background?
JPG does not support transparency. When converting a transparent PNG to JPG, the previously-transparent pixels become a solid colour, white by default. Set the background colour to match your page or design context.
Is there a lossless way to convert formats?
Lossless conversion is possible only between lossless formats (PNG ↔ WebP-lossless). Any conversion involving JPG involves lossy re-encoding. Even PNG-to-PNG re-encoding is lossless on the pixel data but strips metadata.
Can I convert SVG to PNG?
Yes. Drop an SVG into the tool, it renders to canvas at the SVG’s intrinsic dimensions and outputs a PNG. SVG-to-JPG works the same way (with the background-colour rule applying since SVG often has transparent regions). SVG-to-WebP is also supported.
What about HEIC/HEIF (iPhone photos)?
Browser support for decoding HEIC is patchy. Safari handles it natively; Chrome and Firefox often do not. The tool can decode whatever your browser can decode. If your browser cannot read HEIC, neither can the tool. Convert HEIC to JPG via a desktop tool first if needed.
What’s the difference between WebP and AVIF?
AVIF produces smaller files than WebP at equivalent quality, especially for photographs. WebP encodes faster and is more widely tooled. For browser-time conversion, WebP is the practical choice; for build-time pipelines, AVIF is increasingly the better default.
Does converting strip metadata?
Yes. Re-encoding through canvas removes EXIF, geotags, copyright fields, and camera metadata. Useful for privacy; problematic if attribution matters. Use ImageMagick with explicit metadata-preserving flags if you need it kept.
Common problems
Problem: Converted JPG looks acceptable but has visible artefacts on flat-colour areas.
JPG’s frequency-domain compression handles smooth gradients well but produces visible blocking on flat areas with subtle variations (skies, walls, soft backgrounds). For images dominated by flat colour, prefer WebP or PNG, both of which handle these areas more gracefully.
Problem: Converted WebP is larger than the source PNG.
For very small or very simple images (icons, single-colour graphics), WebP’s overhead can exceed PNG’s compression efficiency. Test both formats on small assets and pick the smaller. WebP wins decisively on photographs and complex graphics; the margin shrinks (and can flip) on tiny or trivial sources.
Problem: SVG converts to PNG at unexpectedly small dimensions.
SVG has intrinsic dimensions specified in the file. If the source SVG is <svg viewBox="0 0 24 24"> (a typical icon size), the rasterised PNG will be 24×24. To produce a larger PNG, edit the SVG’s viewBox/width/height first, or resize the resulting PNG.
Problem: Converted image has a different colour cast from the source.
Browsers handle colour profiles differently. An image saved with a wide-gamut profile (Display P3, ProPhoto) may render flat-looking after conversion if the destination format does not preserve the profile. For brand-critical work, preserve the source format if the colour cast matters; converting always involves some profile flattening.
Problem: Animated GIF “converts” but loses the animation.
Canvas-based conversion handles a single frame. For animated content, neither this tool nor most browser-based image tools work. Use FFmpeg or a dedicated GIF/video tool that handles frame sequences.
Quick guides
Modernising a WordPress library: The WP Beacon Plugin handles bulk format conversion automatically. Point it at your existing media library and it produces WebP variants alongside the originals, with the right <picture> markup served on the front-end. No per-image work.
For build pipelines: sharp in Node is the standard. sharp(input).webp({ quality: 80 }).toFile(output) is one line; integrate into your build step and the pipeline produces all formats automatically.
For one-off CLI work: ImageMagick handles every common conversion. convert source.png target.webp works for most cases; add -quality 80 to control lossy targets, -strip to remove metadata.
Tips
- For “just smaller file size, same look”, convert PNG photographs to WebP. Lossless WebP often beats PNG by 20–30%; lossy WebP at 80% quality can beat JPG by similar margins with no visible difference at typical sizes.
- For “I need transparency”, PNG and WebP are your options. WebP if browsers and tooling support it; PNG if safety matters more than file size.
- When converting transparent PNG to JPG, set the background colour to whatever the image will sit on. White is rarely right: most pages have a non-white background somewhere.
- Source format and target format being the same produces a re-encoded copy rather than a literal duplicate. Useful for stripping metadata or normalising encoder output, otherwise unnecessary.
- AVIF is the next step beyond WebP for photographic content. Browser support is now widespread; encoder cost makes browser-time AVIF impractical, build-time AVIF is the right home for it.
- Animated images need a different tool: FFmpeg, ezgif, or a dedicated animation editor.
Related tools in this suite
The natural pairing is the Image Compressor (converter for “different format”, compressor for “smaller file size at the same format with quality control”) and the Image Resizer, which completes the trio of common image-prep operations every web project needs. All three sit within the Design Suite.
What this looks like at scale
Format conversion at scale belongs in the build pipeline. The systems we build typically include automated image processing on upload: content editors do not pick formats, the system does, generating WebP and modern fallbacks alongside the original. Doing this once at the system level removes hundreds of small “should this be JPG or PNG?” decisions over a project’s lifetime.
Take it further
If your site has accumulated a mixed-format image library and bandwidth costs are climbing, format consolidation is the right next project. Talk to us about audit and migration work that moves an entire site to modern formats with proper fallbacks for older browsers.
Want a website built and looked after for you?
We build small-business websites for £499 +VAT, then £59 +VAT a month covers hosting, support and small changes from our UK team. Tell us what you need and a real person will reply, usually within a few hours.
The audit is a score out of 100 and what to fix first, emailed within 24 hours.