Insert Text Rule

Want to add something before or after filenames? Or insert a version number or date at a specific position? This rule helps you get it done quickly.

What This Can Help You With

  • Add prefix tags in batch: Add unified prefixes like [Finance] or [HR] to files from different departments
  • Insert version numbers: Insert _v2 after the 7th character of the filename, with precise position control
  • Append tags after keywords: Automatically add _edited after 001 to easily distinguish edited files
  • Only modify filenames: Keep extensions like .jpg and .png unchanged, only insert content in the filename

Quick Start (3 Steps)

  1. Click the "Add Rule" button β†’ Select "Insert"
  2. Fill in two fields:
    • Insert: For example [Important], _v2, _edited
    • Position: Choose Prefix/Suffix/Position/After Text/Before Text
  3. Preview first, then apply if everything looks good to avoid accidentally renaming a bunch of files incorrectly

Examples

Example 1: Add Prefix Tags in Batch

❌ Original files: invoice-001.pdf, invoice-002.pdf, invoice-003.pdf... 😫 Problem: Invoice files from the finance department have no obvious identifier, want to add a [Finance] prefix for easy recognition

βœ… Settings:

  • Insert: [Finance]
  • Position: Prefix

βœ… Result: [Finance]invoice-001.pdf, [Finance]invoice-002.pdf, [Finance]invoice-003.pdf...

Why these settings: Prefix mode inserts text directly at the beginning of the filename, perfect for category tags or permission identifiers. The .pdf extension remains unchanged.


Example 2: Insert Version Number at Specific Position

❌ Original file: report2023.docx 😫 Problem: Want to insert version number _v2 after report (after the 7th character), but don't want to count positions manually

βœ… Settings:

  • Insert: _v2
  • Position: Select Position (enter 7)
  • From right: Unchecked (count from left)

βœ… Result: report_v22023.docx

Why these settings: Position counts from 1, so the 7th character is the last letter t in report, and _v2 is inserted after it. Note that it inserts between t and 2.


Example 3: Append Tag After Keyword

❌ Original files: IMG_001.jpg, IMG_002.jpg, IMG_003.jpg... 😫 Problem: Want to add _edited tag after the number on edited photos to distinguish them from originals

βœ… Settings:

  • Insert: _edited
  • Position: Select After Text (enter 001)

βœ… Result: IMG_001_edited.jpg, IMG_002.jpg, IMG_003.jpg...

Why these settings: Only files containing 001 will have the tag added, other files (like 002, 003) remain unchanged. To modify all files, you'll need to combine with other rules or use "Suffix" mode.

Fields to Fill

Basic Settings

  • Insert: The content you want to add, such as [Important], _v2, 2024-, _edited (This cannot be empty, otherwise nothing will change)

  • Position: Determines where the text is inserted, with 5 options:

    • Prefix: Insert at the very beginning of the filename
    • Suffix: Insert at the end of the filename (before the extension)
    • Position: (requires a number): Insert after the nth character (e.g., enter 7 for after the 7th character)
    • Before Text: (requires target text): Insert before specific text (e.g., before 001)
    • After Text: (requires target text): Insert after specific text (e.g., after 001)

Advanced Options (Optional, defaults work fine)

  • Position number (only needed when selecting "Position:" mode) Counting from the beginning of the filename, insert after which character. For example, enter 1 to insert after the first character, enter 7 for after the seventh. (Number cannot be less than 1 or greater than filename length + 1)

  • From right (only appears when selecting "Position:" mode) Default unchecked, counts from the left. When checked, counts from the end of the filename.

  • Target text (only needed when selecting "Before Text:" or "After Text:" mode) Enter the text you want to locate, such as 001, IMG, report. If the filename doesn't contain this text, the rule will skip that file.

  • Ignore extension Default checked, only inserts in the filename, leaving .jpg, .png extensions untouched. When unchecked, the extension is treated as part of the main text (generally not recommended).

FAQ

❓ How do I add a date after all filenames?

Use Suffix mode.

Example: Add _2024 to all files

  • Insert: _2024
  • Position: Suffix

Result: report.docx β†’ report_2024.docx

❓ Position keeps inserting in the wrong place?

  1. Confirm counting direction "From right" unchecked = count from left, checked = count from right

  2. Note that position starts from 1 For the 1st character, enter 1, not 0

  3. Check "Ignore extension" When checked = .txt doesn't count toward length, only the filename part is counted

Example: file.txt has a length of 4 (f-i-l-e), entering 5 will insert at the end

❓ Can't find target text?

Most common reasons:

  • You entered img, but the filename has IMG (case mismatch)
  • Target text has extra spaces or special characters

Solutions:

  • Copy and paste the target text from the filename to avoid typos
  • If filenames vary too much, consider using "Prefix" or "Suffix" mode instead

❓ Extension got modified?

Make sure "Ignore extension" is checked (it's checked by default).

If unchecked, .jpg will be treated as part of the main text, and insertion might happen between j and p, corrupting the extension.

Important Notes:

  • ⚠️ Applying without preview: Changes are hard to undo, make it a habit to preview first
  • ⚠️ Wrong position number: Position counts from 1, miscounting will shift the insertion point
  • ⚠️ Before modifying many files: Test with a few files first, confirm it works, then select all

Advanced Tips

  • βœ… Combine with Clean Characters: First clean up messy symbols, then insert a unified prefix (like 2024-)
  • βœ… Combine with Sequence: First insert prefix Photo_, then append sequential numbers to create Photo_001, Photo_002 style naming
  • βœ… Combine with Find & Replace: First use find & replace to fix typos, then use insert text to add batch tags
  • Find & Replace: Better suited when you need to modify existing text
  • Remove Text: Remove redundant content first, then insert
  • Sequence: Add consecutive numbers in batch