One source, one deliberate destination

Rename Files from a CSV Map Without Guessing Matches

Use a CSV map when each file needs a specific new name that shared naming rules cannot express. Supply exact old_name,new_name headers and one unambiguous row for every selected file. The tool validates the whole association instead of guessing near matches or skipping unresolved files.

Use the Bulk File Renamer CSV map mode with files selected locally. The worked example maps three approved product assets to individually chosen names, then explains duplicate sources, protected extensions and the difference between safe spreadsheet review and exact reimport.

Choose a map when the naming decision is per file

Shared rules are efficient when every source should receive the same transformation. A CSV map is more suitable when a reviewer has chosen a different descriptive name for each asset, or an existing handoff sheet already records those decisions. The map associates one original filename with one complete intended filename. It is not a search query, a pattern language or a list of suggestions. Begin with approved decisions you can explain. If you do not yet know which source corresponds to which asset, inspect the files separately before mapping them. Importing a table cannot solve an unresolved identification problem.

For a fictional example, editor Lena receives three selected assets from a small lighting studio: a front view, a shade detail and a dimensions diagram. The camera and export names do not describe those roles consistently. A single shared base with a counter would distinguish files but would not communicate which view each contains. Lena prepares a specific destination for each source after comparing them with the approved product sheet. The renamer treats the files as opaque bytes; it does not recognize a lamp, read the diagram or verify that the proposed descriptions are true. Lena remains responsible for those associations.

Naming mode separates this mapping workflow from Naming rules. Prefixes, case changes, literal replacements and the sequence counter do not combine with CSV mode. Put the full desired target name, including the unchanged original extension, into new_name rather than expecting another rule to finish it. Manual custom bases can address individual planned-name problems after a map is applied, but they are a separate layer that needs review. For a reproducible approval process, keep the approved table and record any later exceptions. A map is valuable because the decision is explicit, not because a spreadsheet automatically makes the decision correct.

Prepare exactly two UTF-8 columns with literal text

The first record must be exactly old_name,new_name, with those lowercase names in that order. Do not substitute Original filename, add a status column or paste a complete project spreadsheet with unrelated fields. Use a comma-delimited UTF-8 CSV, not a semicolon-delimited export or a workbook renamed to .csv. The map accepts at most 256 KiB and 200 data rows. Those are product limits, not an invitation to fill unused rows. Prepare only the records belonging to the selected batch, and remove introductory notes or explanatory footer rows before importing. Every remaining row must be a genuine mapping record.

CSV quoting is separate from the filename itself. If a source is named take, two.JPG, the old_name field must be quoted so its comma stays inside one field: "take, two.JPG",lamp-side.JPG. Those enclosing quotes describe CSV structure and are not part of the source filename. A literal double quote inside a CSV field is escaped by doubling it, although proposed target names still have to pass the tool’s filename restrictions. Use a CSV-aware export rather than replacing commas by hand. A parser must be able to identify exactly two fields for each record without guessing where a filename ends.

Treat both columns as text while preparing the source table, and inspect the exported CSV in a plain-text view before applying it. A spreadsheet’s display can hide changes such as removed spaces or altered character sequences. Do not add spaces around the header comma for readability or assume that trimming is harmless for filenames. The old_name values must match the originals exactly, including case, punctuation and extension spelling. Keep blank records out of the mapping rather than relying on an importer to drop them. If an import is invalid, correct the input and retry; an invalid import does not replace a valid current draft.

Match the entire selected batch without ambiguity

Every selected file must map exactly once, and every CSV source row must refer to a selected file. A missing row is an incomplete delivery plan. An extra row for an unselected file is not a harmless note. Duplicate old_name keys are rejected because two targets cannot both define the same source association. The match is literal: IMG_0412.JPG is not interchangeable with img_0412.jpg. There is no fuzzy matching, automatic extension correction or Unicode normalization of the original-name lookup. Copy names from the selected batch carefully instead of retyping an approximation that merely looks similar on screen.

Two selected files with the same original name are ambiguous in CSV mode even if they came from different source folders. A map keyed only by old_name cannot tell which cover.png you mean. Adding a folder path to the CSV does not solve this: the tool works with a flat file batch, not a path-addressed directory inventory. Process the ambiguous sources in separately reviewed batches or establish distinct source names outside this workflow first. In Naming rules mode, distinct selected items can be processed without that CSV lookup, but their planned targets must still be valid and unique. Choose the mode that fits the available identifiers.

Compare counts as an initial check, then inspect the actual associations. Three selected files and three CSV rows can still contain one missing source and one unrelated source. Sorting the selected list does not repair a wrong key; the association follows the exact name, not the row number in your spreadsheet. Likewise, a reordered CSV should not be used as an instruction to guess new pairings by position. When an error appears, identify whether the problem is the selected set, a duplicated key or a mistyped old_name. Resolve that cause before evaluating the target names. A complete-looking table is not necessarily a complete exact match.

Apply the three-asset lighting studio example

Lena selects DSC_0412.JPG, DSC_0417.JPG and dimensions export.png. Her approved CSV consists of the header old_name,new_name followed by three separate records: DSC_0412.JPG,orbit-lamp-front.JPG, DSC_0417.JPG,orbit-lamp-shade-detail.JPG and dimensions export.png,orbit-lamp-dimensions.png. The space in the third original name is literal and does not require quotes by itself. Each destination preserves its source extension exactly. This is an illustrative naming decision, not an image-recognition result or a promise that any product description can be verified from a filename alone. Lena checks the originals against the product sheet before treating this table as approved.

She chooses CSV map under Naming mode, pastes the records into CSV map text and selects Apply CSV map. Open CSV map is the alternative for a local CSV file; it is not an importer for an online sheet URL or an arbitrary catalog format. In the preview, the front image must point to orbit-lamp-front.JPG and the shade image to orbit-lamp-shade-detail.JPG. Lena checks those pairs individually rather than accepting success solely because the target names sound plausible. Reversing those two destinations could still produce valid unique filenames while attaching the wrong descriptive role to each file. Validation cannot replace that editorial comparison.

As a deliberate failure check, suppose the second record also uses orbit-lamp-front.JPG. Both selected source keys remain correct, but the duplicate target makes the plan invalid. The tool does not append an unrequested number or discard one image. Lena corrects the shade target in the CSV and reapplies the map, or uses a reviewed custom base for that row. Before final approval she checks whether any previous custom bases remain, because a valid map plus a persistent override can differ from the table she is reviewing. The final Planned filename column, not the CSV text alone, defines what the next ZIP would contain.

Once the mapping is approved

Connect asset preparation to recurring account work

Keep exact file associations in your delivery record. Review SMTasker separately for supported account automation when the approved assets are ready for your next workflow.

Resolve target problems without silently altering the plan

The new_name field contains a complete target filename, but its extension must match the original final extension exactly. A source named view.JPG cannot map to view.jpg or view.webp under this contract. For assets.tar.gz, the protected extension is only .gz; .tar belongs to the base. Mapping to delivery.tar.gz keeps that useful label, while mapping to delivery.gz omits it without converting the contents. A leading-dot source such as .env has no extension under the final-dot rule. Check these distinctions explicitly when a batch mixes image, document and archive names.

A target must be one portable filename component, not a folder instruction. Do not use approved/front.JPG, parent-directory syntax, a drive prefix or a reserved device name to organize the delivery. Nested folders are not generated from new_name. Invalid characters, trailing spaces or periods, empty targets and names exceeding 180 UTF-8 bytes block export rather than being sanitized or truncated silently. The validator also checks targets conservatively for case-insensitive, NFC-normalized collisions. Two strings that look different in the CSV can therefore conflict in the plan. Shorten or distinguish them deliberately instead of relying on the recipient’s filesystem to resolve the conflict.

Custom base name can correct a mapped target by replacing its entire generated base and appending the original extension afterward. If a source is DSC_0417.JPG, entering orbit-lamp-shade-detail supplies that base without typing .JPG again. This manual field has an 80-Unicode-code-point cap, separate from the complete target’s 180-UTF-8-byte limit. It does not receive global affixes or a sequence. An override can fix an incorrect mapped extension, but it cannot repair a missing source association or an extra unmatched CSV row. Resolve map-level errors in the CSV itself. For a clean handoff, record the final association after all corrections rather than keeping an outdated table as the apparent approval record.

Separate spreadsheet-safe fields from exact filename data

CSV is text, but spreadsheet applications may interpret certain field values as formulas. That matters for filenames beginning with characters such as equals, plus, minus or at-sign, including risky values after leading whitespace. Spreadsheet-safe CSV is on by default for map exports. It prefixes formula-like fields with an apostrophe to reduce that interpretation risk. This protection applies to the CSV representation, not to the file names being created. A target named +approved.txt stays +approved.txt in the renamed copies even when its field in a spreadsheet-safe map is prefixed. CSV quoting alone should not be mistaken for this separate protection.

The tradeoff is important for exact reimport. A protective apostrophe in an exported old_name field can make that field different from the literal selected source name. Do not assume that a spreadsheet-safe review copy is an exact machine-roundtrip map, and do not remove every leading apostrophe indiscriminately: an apostrophe may belong to a real filename. Choose literal CSV only through the explicit opt-in when you need exact values for reimport. With that protection off, spreadsheet software may interpret formula-like values, so handle the file as untrusted data and review it with an appropriate text-oriented workflow rather than casually opening it in a spreadsheet.

The ZIP also includes an exact renaming-map.json containing the original and planned names without CSV formula-safety prefixes. Keep that exact record when fidelity matters, alongside the spreadsheet-safe CSV used for human review. The JSON is a mapping record, not a promised JSON-map importer or a project that restores selected files. Actual filenames are never changed just to make a CSV easier to open. Distinguish all three things in the handoff: the names of the delivered copies, the safe presentation of those names in CSV, and the exact names recorded in JSON. That distinction prevents a review convenience from becoming an accidental naming instruction.

Control revisions to the selected set and the map

Freeze the selected membership before approving the mapping. Appending another file after applying a three-row map means the plan now needs an additional exact association; removing a file can leave an unmatched row. Reordering alone does not change a name-keyed association, but it can make a reviewer overlook a pair if they expected the same visual arrangement. After any membership or mapping edit, inspect the full preview again. Keep a local copy of the approved input map and identify which selected source set it belongs to. The tool does not maintain an audit history that can explain later why a particular row changed.

Persistent custom bases deserve their own check during revision. A reviewer may correct the CSV while a previous custom base still determines a row’s final target. Reset custom names when you intend the imported map to be the sole target authority, then confirm the resulting plan. Conversely, do not reset them casually when they contain approved exceptions that have not been written back into your own working record. Agree on one authoritative final mapping before delivery. This is a small change-control step, but it prevents a common misunderstanding: approving the table in a message while exporting a different set of names from the live preview.

Save rules is not a way to save this CSV session. Its JSON contains naming controls only, not the selected files, their data, CSV rows, manual overrides or delivery history. Entered naming text may still be private, so review a preset before sharing it, but do not expect it to reconstruct the map. Retain your CSV separately and keep the completed ZIP with its exact JSON record. If you close the tab, you will need to select the intended sources again for another export. There is no autosave or folder synchronization maintaining an ongoing relationship between the local originals and a saved mapping sheet.

Export a verifiable flat delivery and retain its evidence

Download renamed ZIP becomes useful only after every source association and target issue is resolved. The batch is limited to 200 files, 50 MiB each and 100 MiB overall, with zero-byte files allowed. A large catalog CSV does not bypass those limits. Export has a separate 110 MiB ZIP cap and a 120-second deadline; Cancel export stops the current operation. STORE packaging does not compress the assets, so do not expect renaming to reduce transfer size. If a batch exceeds the boundaries, divide it into meaningful, independently mapped deliveries. Each smaller selection needs its own exact complete map, not unrelated rows from the larger catalog.

The ZIP places every copied asset under renamed-files/ and puts renaming-map.csv, renaming-map.json and README.txt separately at its root. Extract into a fresh destination, compare the file count and map, and open the front image, shade image and dimensions diagram to verify Lena’s associations. The tool does not rename the source files on disk or ingest a folder hierarchy. Copied bytes, including embedded metadata, remain unchanged. ZIP timestamps are fixed to 2000-01-01, and original filesystem timestamps are not promised. A filename map records the rename association, not a checksum certificate or proof of the asset’s approval history.

Store the delivered ZIP and its approval record together so a later correction can identify which copy needs replacing. If a recipient already linked a delivered filename into another project, coordinate the replacement rather than sending an unexplained new map. Processing stays in the browser without a file upload, while ordinary website delivery and analytics can still occur; that is not a general security guarantee for sensitive naming text. Return to the CSV mapping preview when a correction is needed. The free tools directory offers separate preparation workflows, but none are performed automatically by applying this CSV.

Questions about Rename Files from a CSV Map

Can my CSV rename only two files from a larger selected batch?

No. Every selected file must have exactly one matching old_name row, and every row must refer to a selected file. Remove files outside the intended delivery or add their reviewed mappings; missing and unmatched rows block export.

Why can two files called cover.png not use one CSV row?

CSV mode identifies a source by its exact original filename, so duplicate original names are ambiguous even if the files came from different folders. Use separately reviewed batches or establish distinct source names outside this workflow. Folder paths are not accepted as disambiguating keys.

Does an apostrophe in a safe map change the name inside the ZIP?

No. Spreadsheet-safe protection prefixes risky CSV fields only; the actual filenames are unchanged. The ZIP includes an exact JSON map. Literal CSV for exact reimport requires an explicit opt-in and may be interpreted as formulas by spreadsheet software.

Continue with another file-naming guide

Prepare the actual batch in Bulk File Renamer, choose a related guide below, or explore all free tools.

A map is not a publishing connection

Choose a commercial setup for ongoing operations

The free renamer creates local copies and a mapping record. Explore SMTasker plans for supported social account workflows without treating CSV import as a publishing action.