Post

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.

Batch Rename TIFF Files and Convert Images to TIFF on Windows

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:

  1. Batch renaming TIFF files
  2. 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.tiff untouched
  • 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 .png file to .tiff
  • Keeps the same base name
    (e.g., photo.jpg → photo.tiff)
  • Works on an entire folder automatically

🎨 Optional: Higher-Quality TIFF Settings

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 .ps1 script that performs all steps at once
  • A version of this guide with screenshots
  • A Chirpy-compatible TOC, optimized headings, or metadata

Just ask!

This post is licensed under CC BY 4.0 by the author.