Forum Discussion
Is there an easy way to convert heic to jpg in bulk?
You can create a new powershell command line script to help you convert heic to jpg on a PC.
1. Press Win + R and type powershell → right click and select “New File”.
2. Paste the following code into the file:
Get-ChildItem -Path "out_path\*.heic" -Recurse | ForEach-Object {
$newName = $_.Name -replace ".heic", ".jpg"
[System.IO.File]::WriteAllBytes($_.FullName, [System.Drawing.Image]::FromFile($_.FullName).Save($newName, [System.Drawing.Imaging.ImageFormat]::Jpeg))
}
3. Save the file as example.ps1 (be careful to keep the .ps1 extension). Replace the input folder path in the code with the directory where your actual HEIC file is located.
4. Right-click on the Start Menu and select Windows Terminal (Administrator). Navigate to the directory where the script is located and the script will automatically convert all .heic files in the directory to .jpg and save them in the original folder.
5. Open the destination folder and confirm the generated .jpg files.
6. Check that the image quality is normal (some HEIC images may contain transparent backgrounds or EXIF metadata, the script retains the content by default).
With the above steps, you can efficiently batch convert a large number of HEIC to JPG format. If you encounter problems, it is recommended to try single conversion in priority to verify whether the script is successful or not.
This kind of command tool is not used by ordinary people. I tried it before, but the photos couldn't be opened. If you want to convert heic to jpg easily, you can only use professional tools.