BMP to AVIF Crop Converter

Load a BMP image, drag the crop handles to define exactly the area you need, preview the result, then download a next-gen AVIF file. Everything runs in your browser — your image never leaves your device.

⚠️ Your browser does not support AVIF encoding via the Canvas API. Chrome 85+, Edge 121+, and Firefox 93+ are required for AVIF output. The download will fall back to PNG.
🖼️

Drop a BMP here

or Browse Files  ·  BMP supported

What This Tool Does

This tool loads a BMP image directly in your browser, presents an interactive crop overlay with draggable handles, and converts the selected area to an AVIF file. No server upload is required. The full workflow — loading, cropping, encoding — runs entirely in client-side JavaScript using the HTML5 Canvas API. BMP files are decoded using URL.createObjectURL combined with img.decode(), which resolves only after the image is fully ready to paint, ensuring the canvas always receives complete pixel data. The output AVIF is encoded using the browser's native Canvas toBlob('image/avif') API, producing a compact next-gen image that is 90–98% smaller than the equivalent uncompressed BMP.

Who This Is For

  • Web developers who have BMP source files and need a cropped, optimized AVIF for web delivery
  • Designers extracting a specific region of a BMP bitmap for use in a modern web project
  • Anyone converting legacy BMP files to next-gen AVIF without installing software
  • Developers who need a quick crop-and-convert workflow that stays entirely in the browser

BMP vs AVIF: Format Comparison

PropertyBMPAVIF
Primary useLegacy Windows bitmaps, raw pixel dataModern web images, photos
CompressionNone (uncompressed)Lossy or lossless (AV1)
Typical file size (12 MP)30–36 MB0.5–3 MB
Transparency supportLimited (32-bit BMP only)Yes (alpha channel)
HDR & wide color gamutNoYes
Browser supportUniversal (local only)Chrome 85+, Firefox 93+, Edge 121+, Safari 16+
Web delivery suitabilityPoor — files are very largeExcellent — best-in-class compression
Best forLegacy Windows apps, raw image dataWeb delivery, modern image storage

Frequently Asked Questions

Why does this tool use img.decode() for loading BMP files?
Using URL.createObjectURL combined with img.decode() is the most reliable loading strategy across all image formats. The img.decode() promise resolves only when the image is fully decoded and ready to paint — guaranteed non-blank pixels. This prevents the silent blank-canvas problem that can occur when ctx.drawImage() is called before the browser completes the full image decode.
How precise is the crop tool?
The crop operates at native pixel accuracy on the original BMP dimensions. The canvas is scaled to fit your screen for display, but the actual crop coordinates are mapped back to the full-resolution image before the AVIF is generated. You get an AVIF at the exact pixel dimensions shown in the crop dimensions badge.
What AVIF quality is used for the output?
The tool uses the browser's default AVIF quality setting via canvas.toBlob('image/avif'), which is typically equivalent to a quality of 0.8–0.9. This produces excellent visual results with significant file size reduction compared to BMP. The output is visually lossless for most photographic content.
Which browsers support AVIF output?
AVIF encoding via the Canvas API is supported in Chrome 85+, Edge 121+, and Firefox 93+. Safari does not currently support canvas AVIF output. If your browser does not support AVIF encoding, a compatibility warning will appear and the download will fall back to PNG format.
Is there a file size limit?
There is no server-imposed limit because no upload occurs. The practical limit is your browser's available RAM. BMP files can be very large due to their uncompressed nature — a 24 MP BMP can be 70+ MB. Most modern desktops handle these without difficulty. Very large files on mobile devices may be slower.
Can I move the crop selection after setting it?
Yes — click and drag anywhere inside the crop rectangle (not on a handle) to reposition the entire selection without changing its dimensions. Corner and edge handles resize; the interior pans.