Loading...
Loading...
Printable Reference
Consistent naming patterns for every major AI image tool.

The Universal Pattern
{project}_{tool}_{YYYYMMDD}_{seq}.png
project
Kebab-case, 2-30 chars
tool
Abbreviation (see below)
YYYYMMDD
Date, no hyphens
seq
3-digit zero-padded
Example: hero-banner_mj_20260221_001.png
Why Consistent Naming?
π Instant Search
Find any image by project, tool, or date in seconds
π Auto-Sorting
OS file explorers group files naturally by name
π Tool Agnostic
One pattern works across all AI tools you use
π¦ Archive Ready
Files self-document with project, date, and origin
Tool-Specific Patterns
ComfyUI
comfyComfyUI_00001_.png
hero-banner_comfy_20260221_001.png
Save Image node: set filename_prefix to {project}_{tool}_{date}. Or use Numonic auto-naming.
Midjourney
mjuser_a_cat_sitting_on_a_6abf2.png
hero-banner_mj_20260221_001.png
Rename after download. Discord: right-click, Save As. Web gallery: bulk download then batch rename.
Stable Diffusion (A1111)
sd00001-3928472947.png
hero-banner_sd_20260221_001.png
Settings, Saving images, Images filename pattern: [model_name]_[date]_[job_no]. Rename with batch script.
Leonardo AI
leoleonardo_lightning_xl_1234.jpg
hero-banner_leo_20260221_001.jpg
Rename after download. Bulk download gives numbered files. Use the batch rename script from page 2.
Adobe Firefly
fireflyFirefly_20260221T091532.png
hero-banner_firefly_20260221_001.png
Rename after download. Firefly includes timestamps which helps. Strip the T-separator and add project prefix.
Pro Tip: Start with one project
Don't rename your entire library at once. Pick your current project, apply the convention, and expand from there. Consistency on new files matters more than retroactively renaming old ones.
License: All scripts and naming patterns on this page are released under the MIT License. You are free to use, copy, modify, and distribute them in personal and commercial projects without attribution.
Disclaimer: These naming conventions and scripts are provided "as is" without warranty of any kind, express or implied. They are educational examples for common AI image workflow operations. Numonic Labs Ltd and its contributors are not liable for any damages arising from their use. Always test scripts in a safe directory before running on important files.
1
Page 2 of 3
Copy-paste any script below to rename an entire folder of AI images in seconds. Each takes a project name and tool abbreviation as arguments.
macOS / Linux (Bash)
#!/bin/bash
# Usage: ./rename.sh <project> <tool> [dir]
PROJECT=${1:?Usage: ./rename.sh <project> <tool> [dir]}
TOOL=${2:?Provide tool abbreviation}; DIR=${3:-.}
DATE=$(date +%Y%m%d); SEQ=1
for file in "$DIR"/*.{png,jpg,jpeg,webp}; do
[ -f "$file" ] || continue
EXT="${file##*.}"
NEW=$(printf "%s_%s_%s_%03d.%s" "$PROJECT" "$TOOL" "$DATE" "$SEQ" "$EXT")
mv -- "$file" "$DIR/$NEW"
echo "Renamed: $(basename "$file") -> $NEW"
SEQ=$((SEQ + 1))
doneWindows (PowerShell)
# Usage: .\Rename.ps1 -Project "hero" -Tool "mj"
param(
[Parameter(Mandatory)]$Project,
[Parameter(Mandatory)]$Tool,
[string]$Dir = "."
)
$date = Get-Date -Format "yyyyMMdd"; $seq = 1
Get-ChildItem "$Dir\*" -Include *.png,*.jpg,*.webp | ForEach-Object {
$ext = $_.Extension
$new = "{0}_{1}_{2}_{3:d3}{4}" -f $Project, $Tool, $date, $seq, $ext
Rename-Item $_.FullName -NewName $new
Write-Host "Renamed: $($_.Name) -> $new"; $seq++
}Cross-Platform (Python 3)
#!/usr/bin/env python3
"""Usage: python rename.py <project> <tool> [dir]"""
import sys
from pathlib import Path
from datetime import date
project, tool = sys.argv[1], sys.argv[2]
directory = Path(sys.argv[3]) if len(sys.argv) > 3 else Path(".")
today = date.today().strftime("%Y%m%d")
exts = {".png", ".jpg", ".jpeg", ".webp"}
files = sorted(f for f in directory.iterdir() if f.suffix.lower() in exts)
for seq, file in enumerate(files, start=1):
new_name = f"{project}_{tool}_{today}_{seq:03d}{file.suffix}"
file.rename(directory / new_name)
print(f"Renamed: {file.name} -> {new_name}")2
Page 3 of 3
Tear this page out and keep it next to your workstation. Everything you need to name files consistently, at a glance.
Tool Abbreviations
| Tool | Code |
|---|---|
| Midjourney | mj |
| ComfyUI | comfy |
| Stable Diffusion | sd |
| Leonardo AI | leo |
| Adobe Firefly | firefly |
| Flux (via ComfyUI) | flux |
| Other / Custom | custom |
Naming Rules
All lowercase, always
Underscores between sections (not hyphens)
Hyphens within project names (kebab-case)
No spaces or special characters
Date always YYYYMMDD (no separators)
Sequence always 3-digit zero-padded
Common Mistakes
Hero Banner_MJ_2026-02-21.png
hero-banner_mj_20260221_001.png
Spaces, uppercase, date hyphens, no sequence
img_001.png
logo-redesign_dalle_20260221_001.png
No project, no tool, no date
midjourney-hero-banner-2026.png
hero-banner_mj_20260221_001.png
Tool in wrong position, no underscore separators
hero-banner_mj_20260221_1.png
hero-banner_mj_20260221_001.png
Sequence not zero-padded β breaks sort order at 10+
hero_banner_mj_20260221_001.PNG
hero-banner_mj_20260221_001.png
Uppercase extension, underscore in project name
Skip manual naming entirely
Numonic names, tags, and organizes your AI images automatically. Drop files in your sync folderβnaming convention applied instantly.
numonic.ai β Try free
Recommended Folder Structure
ai-images/
βββ hero-banner/
β βββ hero-banner_mj_20260221_001.png
β βββ hero-banner_comfy_20260222_001.png
βββ product-shots/
β βββ product-shots_dalle_20260221_001.png
βββ social-media/
β βββ social-media_leo_20260221_001.jpg
βββ _archive/
βββ (rejected / old versions)Quick Workflow Checklist
Create project folder (one per campaign/brief)
Generate images in your AI tool of choice
Download to project folder (or sync folder)
Run batch rename script with project + tool args
Review renamed files, move rejects to _archive/
Back up folder to cloud / Numonic library
numonic.ai
AI-Native Asset Management
Free to share. Attribution appreciated.