HEIC to Base64 Converter

Convert HEIC files to Base64 for embedding in HTML, CSS, or apps. Switch between full data URLs and raw Base64 output.
Drop or paste a file here
Accepted: HEIC.
Files stay on your device.
Check a file’s format
{{ result ? 'Base64 output for ' + imageToBeConverted.name : '' }}

{{ encodingError ? 'Couldn’t encode this file' : 'Encoding your file…' }}

{{ encodingError || imageToBeConverted.name }}

{{ displayOutputLabel }} file
Base64 output

{{ imageToBeConverted.name }}

Text format

{{ outputMime }} · {{ outputCharCount.toLocaleString() }} characters

{{ outputNote }}

{{ copyStatus }}

How to convert HEIC to Base64

1. Choose an image

Choose a HEIC file or drag it onto the page.

2. Convert to Base64

We generate a Base64 data URL and show the preview so you can confirm the output.

3. Copy Base64

Choose full data URL or raw Base64, then copy the output with one click.

HEIC input

HEIC is a high-efficiency photo format used on modern devices.

Data URL or raw Base64

Switch between a full data URL and Base64-only output.

Copy in one click

Copy the output straight to your clipboard.

Preview before copying

Check the preview to confirm the conversion.

MIME prefix ready

Data URL output includes the correct MIME prefix.

One HEIC image

If a HEIC container holds several images, the first decoded image becomes PNG and additional images are not encoded.

Frequently Asked Questions

What does the output look like?

Use the full data URL or raw Base64 output. Data URLs start with data:image/...

Why is the Base64 string long?

Base64 encodes binary data, so the string is larger than the original file.

Can I use this in HTML or CSS?

Yes. Paste the data URL into an image tag or CSS background.

Can I copy the output?

Yes. Use the copy button to place the output on your clipboard.

What happens if the HEIC file contains several images?

Only the first decoded image is converted to PNG and encoded as Base64. Additional images or sequence frames are not included.