Batch Rename TIFF Files and Convert Images to TIFF on Windows
A simple Windows-only guide for batch renaming TIFF files and converting JPG/JPEG/PNG images to TIFF using PowerShell and ImageMagick.
Managing large sets of figures or images often becomes tedious when filenames are inconsistent or when a specific format such as TIFF is required for publication, archiving, or processing tools.
This guide shows how to perform two common tasks easily and automatically on Windows:
- Batch renaming TIFF files
- Batch converting all JPG/JPEG/PNG images to TIFF
Everything is done using PowerShell and ImageMagick, both free and easy to use.
đ 1. Batch Rename Numeric TIFF Files to âFig X.tiffâ
If your folder includes names like:
1
2
3
4
5
7.tiff
8.tiff
Fig 1.tiff
Fig 2.tiff
9.tiff
âĻand you want to rename only the plain-number files (e.g., 7.tiff â Fig 7.tiff), while leaving already-correct names unchanged, run this PowerShell command in that folder:
1
2
3
4
5
Get-ChildItem *.tiff | Where-Object {
$_.BaseName -match '^\d+$'
} | Rename-Item -NewName {
"Fig " + $_.Name
}
â What this command does
- Renames only files whose names consist of digits (e.g.,
7.tiff,8.tiff) - Leaves files like
Fig 1.tiffuntouched - Works instantly inside the chosen directory
- No installation requiredâPowerShell is built into Windows
đŧī¸ 2. Batch Convert JPG/JPEG/PNG to TIFF Using ImageMagick
To convert your image folder to TIFF format, install ImageMagick if you havenât already:
đ https://imagemagick.org
Once installed, open PowerShell in your folder and run:
1
2
3
4
Get-ChildItem *.jpg, *.jpeg, *.png | ForEach-Object {
$output = $_.BaseName + ".tiff"
magick $_.FullName $output
}
â What this command does
- Converts every
.jpg,.jpeg, and.pngfile to.tiff - Keeps the same base name
(e.g.,photo.jpgâphoto.tiff) - Works on an entire folder automatically
đ¨ Optional: Higher-Quality TIFF Settings
Use LZW compression (recommended for publication)
1
magick input.jpg -compress lzw output.tiff
Create 16-bit TIFF files (useful for scientific figures)
1
magick input.png -depth 16 output.tiff
â Summary
This Windows-only guide covered:
- How to batch rename numeric TIFF files to
Fig X.tiff - How to automatically convert JPG/JPEG/PNG images to TIFF
- Optional enhancements like compression and bit-depth
These tools speed up figure preparation for academic manuscripts, large-scale labeling tasks, archiving workflows, and more.
If youâd like, I can also generate:
- A downloadable
.ps1script that performs all steps at once - A version of this guide with screenshots
- A Chirpy-compatible TOC, optimized headings, or metadata
Just ask!