API & MCP

Everything a person can do on HEIC/RAW Image Converter, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

HEIC/RAW Image Converter

Decodes HEIC/HEIF and AVIF photos with libheif and camera RAW files with LibRaw, applies the camera rotation and saves a JPG, PNG or WebP at the quality you choose. Shows the camera, lens and exposure details, and keeps or removes the EXIF metadata as you prefer.

Inputs of HEIC/RAW Image Converter
FieldTypeDefaultDescription
file (required)file—HEIC, AVIF or RAW photo. HEIC/HEIF (iPhone), AVIF or camera RAW (CR2, CR3, NEF, ARW, DNG, ORF, RW2, RAF, PEF…), max 50 MB and 100 megapixels. Deleted after processing; the result can be downloaded for about 2 hours.
formatselect (jpeg, png, webp)"jpeg"Output format
qualityinteger90Quality. For JPG and WebP. PNG is always lossless.
keepExifbooleanfalseKeep EXIF metadata (camera, date, GPS location). Off removes all metadata, including the GPS location.
autoOrientbooleantrueApply the camera rotation. Rotates the pixels upright. HEIC rotation is always applied because the HEIF format requires it.
rawWhiteBalanceselect (camera, auto)"camera"RAW white balance

Example request

AVIF photo to JPG

curl -X POST https://heicrawconverter.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"file":{"filename":"photo.avif","contentType":"image/avif","contentBase64":"AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUEAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAC0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAABAAAAAMAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgSAAAAAAABNjb2xybmNseAABAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAADVtZGF0EgAKCDgM/thAQIGkMh8YAAooooQAxC02adqijwo4ID0p6Pgn+VaHUuOCSvH4"},"format":"jpeg","quality":85}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "heic-raw-converter": { "type": "http", "url": "https://heicrawconverter.usefulweb.site/mcp" }
  }
}