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 turn HEIC/HEIF into JPEG:
import { heicTo } from "heic-to/next";
const jpg = await heicTo({
blob: file,
type: "image/jpeg",
quality: 0.9,
});Limits
- Up to 50 HEIC or HEIF files per batch
- JPEG quality from 0.5 to 0.95
- Optional EXIF copy on the client
- Folder drag-and-drop via the File System Access entries API