We have rebranded to TurboSoft - Please check the site www.turbo-soft.com for More Info

How to Remove the Last N Characters From File Names

Strip unwanted trailing text from an entire batch of filenames

Why Remove the Last N Characters From File Names?

Filenames sometimes carry unwanted text at the end, just before the extension — an auto-generated suffix like "_edited", a timestamp code, or leftover text from an export process. Removing a fixed number of characters from the end of every filename cleans this up across an entire folder in one step, without having to know the exact text to remove.

This rule trims a set character count from right before the file extension, which works reliably even when the trailing text varies slightly between files, as long as its length stays consistent.

Batchify Renaming Tool

Batchify Renaming Tool screenshot - live preview feature
App Screenshots
Live Preview Feature
Live Preview Feature
Find and Replace
Find and Replace
Replace With
Replace With
Use Regex / Match Case
Use Regex / Match Case
Remove First N Characters
Remove First N Characters
Remove Last N Characters
Remove Last N Characters
Trim Whitespace
Trim Whitespace
Insert at Position
Insert at Position
Insert at Position
Insert at Position
Add Prefix
Add Prefix
Add Suffix
Add Suffix
Preview with EXIF Date
Preview with EXIF Date
Case Conversion
Case Conversion
Case Conversion
Case Conversion
Numbering -Start Number and Step
Numbering -Start Number and Step
Zero-pad Digits and Seperator
Zero-pad Digits and Seperator
Numbering
Numbering
Numbering
Numbering
Sort Order
Sort Order
Keep, Force, Remove Extensions
Keep, Force, Remove Extensions
Export Rename Logs to CSV, SLSX or TXT
Export Rename Logs to CSV, SLSX or TXT
Both, Original or Renamed Logs
Both, Original or Renamed Logs
Rename Completion Pop-Up
Rename Completion Pop-Up
Save or Load Preset
Save or Load Preset
How to Remove the Last N Characters From File Names
  1. Install Batchify Batch File Rename Tool on your Windows PC.
  2. Open the app and load the folder containing the files you want to clean up.
  3. Select the Remove Last N Characters renaming rule.
  4. Enter the number of characters to remove from the end of each filename, right before the extension.
  5. Check the live preview to confirm the correct portion is being trimmed from each name.
  6. Click Rename to apply the change across every selected file.
Why This Trimming Rule Works Well
  • Removes a precise character count from the end of the filename, before the extension
  • Works even when trailing text isn't identical across all files, as long as the length matches
  • Live preview shows the exact result before any files are renamed
  • File extensions remain untouched during trimming
  • Recursive sub-folder support for cleaning up nested file structures
  • Conflict detection warns if trimming would create duplicate filenames
Frequently Asked Questions

Does removing characters from the end touch the file extension?

No, the character count applies to the filename portion only, right before the extension, so the extension itself stays intact.

What if some filenames are too short for the character count I specify?

The live preview shows the result for every file before you commit, so you can identify and adjust for any filenames that are too short.

Can I use this together with adding a new suffix?

Yes, Remove Last N Characters can be applied first, followed by a Suffix rule, to both strip unwanted trailing text and add your own labeling in sequence.

Ready to rename your files in bulk, offline, with full privacy?