How to Convert HEIC to JPG
Provide a base64 string containing HEIC or HEIF image data, optionally choose an integer JPEG quality, and submit it for conversion. When successful, the tool returns the JPEG bytes as base64 text.
What this HEIC to JPG converter does
HEIC and HEIF files are common on phones and cameras, but some apps and workflows expect JPEG instead. This converter takes image data supplied as a string and is intended to return JPEG image data. It can be useful when you need a more widely supported format for an upload, document, or photo workflow.
The input is handled as base64 text. That means the string must represent image bytes that can be decoded and opened as an image. You can also provide an optional integer quality setting for JPEG encoding. If you do not provide one, the default is 90.
Steps to convert HEIC to JPG
-
Prepare the image data. Start with a HEIC or HEIF image and obtain its base64 representation. Keep the complete string intact so the image bytes can be decoded correctly.
-
Provide the image data. Enter or pass the base64 image string in the tool’s image-data control. Do not leave this value empty: an empty image-data value causes the operation to fail before image decoding.
-
Choose quality if needed. You may provide an integer quality setting for the JPEG encoder. If you omit it, the converter uses quality 90. The supplied setting is passed to JPEG encoding.
-
Start the conversion. Submit the image data and wait for the operation to finish. The converter decodes the supplied string, attempts to open the resulting image, and converts HEIC or HEIF content to JPEG when processing succeeds.
-
Use the returned value. A successful conversion returns the JPEG bytes as base64 text. Decode that returned text when your next workflow requires a JPEG file or JPEG byte sequence.
For images with RGBA or palette mode, the converter changes the image to RGB before JPEG encoding. This is part of the conversion path, so inspect the resulting image if the source uses those image modes.
How to interpret the result
A successful result is not a visible JPEG filename by itself. The returned value is base64 text that represents JPEG bytes, so a downstream step may need to decode it before saving or passing it to another application.
If the operation fails, first check the supplied image-data value. Empty input stops processing before decoding. A non-empty value can still fail if its decoded bytes cannot be opened as an image. Processing can also fail when the required image-processing support is unavailable. These outcomes mean the conversion did not produce a successful JPEG result.
The converter is intended for HEIC and HEIF image data rather than arbitrary image formats. The reviewed behavior also does not establish a documented quality boundary, so avoid assuming that an unverified quality value will be adjusted or accepted in a particular way.
Worked example
A user needs to pass a phone photo to a workflow that accepts JPEG data instead of HEIC data.
The user supplies the complete base64 string for a HEIC photo and leaves the optional quality setting at its default before submitting the conversion.
If conversion succeeds, the returned value is base64 text representing JPEG bytes.
Limitations
- Conversion is intended for HEIC or HEIF image data and can fail with empty input, image bytes that cannot be opened, or unavailable image-processing support.
Common errors
- An empty, incomplete, or non-openable base64 value can cause failure. Provide a non-empty string that decodes to the complete HEIC or HEIF image data, then try the conversion again.
FAQ
What happens if I leave the image data empty?
If the image-data value is empty, the operation fails before image decoding. Supply a non-empty base64 string representing the image data.
What JPEG quality does the converter use by default?
If you omit the optional quality setting, the converter uses integer quality 90 for JPEG encoding.
How are RGBA or palette images handled?
If the source image has RGBA or palette mode, it is converted to RGB before JPEG encoding.