Skip to converter

Developer API

A converter you can run in the browser

Unheic does not expose a REST endpoint for photos. That would require uploads. Use the same in-browser conversion path this site uses.

Why there is no upload API

A server-side HEIC converter would receive the original files. Unheic is built so conversion cannot leave the device. The public interface is this web app, not a multipart POST.

Browser conversion

This site uses the heic-to engine (libheif in WebAssembly) to decode HEIC/HEIF, then encodes JPG, PNG, WebP, or AVIF in the browser:

import { heicTo } from "heic-to/next";

const jpg = await heicTo({
  blob: file,
  type: "image/jpeg",
  quality: 0.9,
});

Limits

  • Up to 50 HEIC, JPG, PNG, WebP, AVIF, or GIF files per batch
  • Output: JPG, PNG, WebP, or AVIF
  • JPEG / WebP / AVIF quality from 0.5 to 0.95
  • Optional EXIF copy on JPG output
  • Folder drag-and-drop via the File System Access entries API