HEIC to JPG Converter

HEIC to JPG Converter API

File Tools

Convert iPhone HEIC and HEIF photos to JPG, PNG or WebP in your browser. Convert many at once, set the quality, and download each photo or a ZIP. Nothing is uploaded.

Authentication

All API requests require a valid API key passed in the Authorization header as a Bearer token.

Rate Limit

20 requests per minute

Endpoints

1 endpoint available

Overview

Convert an iPhone HEIC or HEIF photo to JPG, PNG or WebP. Send the photo as multipart form data in the file field. The response body is the converted image, named after the upload with the new extension (IMG_1234.HEIC becomes IMG_1234.jpg).

Notes

  • Accepted input: HEIC or HEIF up to 20 MB and 25 megapixels, which covers the 12 MP and 24 MP photos iPhones take by default. 48 MP "HEIF Max" photos are refused with 413.
  • Send the file as image/heic, image/heif or application/octet-stream (what curl sends for a .heic file). The server checks the file's contents, so anything that is not a HEIF image returns 415. A JPEG, PNG, WebP, GIF or AVIF saved with a .heic name is converted as well.
  • A HEIC file can hold more than one image. The primary image, the one your phone shows, is converted. The video part of a Live Photo is a separate file and is not included.
  • The photo's rotation is applied, so the output is the right way up. The output has no metadata: date taken, camera details, GPS location and the colour profile are not copied over.
  • JPG has no transparency, so any transparent areas become white. PNG is lossless and ignores quality.
  • Files that were cut off while copying or uploading return 400. Photos are converted one at a time; if too many are waiting, the API returns 503 and you can retry after a few seconds.

Endpoints

POST
https://opentools.ca/api/v1/tools/heic-to-jpg
Convert a HEIC or HEIF photo to JPG, PNG or WebP

Request Body

Content-Type: multipart/form-data

ParameterTypeRequiredDescription
file
file
Required
The HEIC or HEIF photo, up to 20 MB and 25 megapixels.
format
string
Enum: jpeg, png, webp
OptionalOutput format. "jpg" is accepted as another name for "jpeg".Default: jpeg
quality
number
OptionalQuality from 50 to 100, for jpeg and webp. Ignored for png.Default: 90

Response Example

HTTP/1.1 200 OK
Content-Type: image/jpeg
Content-Disposition: attachment; filename="IMG_1234.jpg"

<binary file data>

Error Codes

400
Bad Request - Missing file, invalid option, or a damaged or cut-off HEIC file
401
Unauthorized - Invalid or missing API key
403
Forbidden - API key is inactive or expired, or the request IP is not allowed
413
Payload Too Large - File over 20 MB or photo over 25 megapixels
415
Unsupported Media Type - Not a HEIC or HEIF image
429
Too Many Requests - Rate limit exceeded
500
Internal Server Error
503
Service Unavailable - Too many photos waiting to be converted; retry in a few seconds

Code Examples

curl -X POST https://opentools.ca/api/v1/tools/heic-to-jpg \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@IMG_1234.HEIC" \
  -F "format=jpeg" \
  -F "quality=90" \
  -o IMG_1234.jpg

Ready to get started?

Create an API key to start using the HEIC to JPG Converter API.

Rather use it in your browser? Open the HEIC to JPG Converter