# Image Hash Rename for Raycast

URL: https://www.raycast.com/saury/image-hash-rename

> Rename images in a folder by appending a content-based MD5 hash to the filename.

- Install: raycast://extensions/saury/image-hash-rename
- Author: [Jin](https://www.raycast.com/saury)
- Installs: 22
- Platforms: macOS
- Categories: Developer Tools, Media
- Updated: 2026-10-09
- Source: https://github.com/raycast/extensions/tree/c33bf4cb4b9ad70c2b93432ee713ffb7486ed331/extensions/image-hash-rename/

## Commands

- **Add Hash to Images**: Renames all images in the chosen folder to [name].[hash8].[ext] using MD5 content hash.

## README

### Image Hash Rename

Rename every image in a folder by appending an 8-character MD5 content hash to its filename.

**Before:** `photo.jpg`  
**After:** `photo.e31b377b.jpg`

#### Features

- Renames images to `[name].[hash8].[ext]` format
- Hash is derived from **file content** — same file always gets the same hash
- **Idempotent** — already-hashed files are skipped automatically. The embedded hash is verified against the actual file content, so files that happen to have an 8-character hex segment in their name (e.g. `logo.deadbeef.png`) are still renamed correctly if they were never processed by this tool
- Supports: JPG, JPEG, PNG, GIF, WebP, SVG, BMP, TIFF, TIF, ICO, AVIF

#### Usage

1. Open Raycast and run **"Add Hash to Images"**
2. On first run, set the **Image Folder** in Preferences (`⌘ ,`)
3. The command runs silently and shows a HUD on completion

#### Preferences

| Name         | Description                            | Required |
| ------------ | -------------------------------------- | -------- |
| Image Folder | The folder containing images to rename | ✅       |
