Photoshop CC – Removing Number Sequence for Export Layers to Files

Share Post:

Disclosure: I am an independent blogger and the reviews are done based on my own opinions. The information in this article is based solely on my own experience using the product. If I have not used the product, I will never give a review of it. My posts may contain affiliate links. You won’t pay a single cent more if you buy something through one of those links. But I’ll get a small commission, I would greatly appreciate it and, in this way, I can produce more valuable content in the future. Click here to read the full disclosure policy. Thanks!

As a designer I often have to edit and export images in batch with Adobe Photoshop. By default the function “Export Layers to Files” will add a number sequence for each file.

This is unnecessary for such scenario and a waste of time to rename very single file especially if you’re exporting 50~80 images per batch. And I did painstakingly renamed every single file when I was a junior designer. ლ(ಥ Д ಥ )ლ

How to remove the number sequences?

This default setting can’t be changed in Photoshop’s main menu; you need to change the coding in the script instead. And here’s the way to change it:

  1. Locate the file “Export Layers to Files.jsx”
  2. Find it at [your drive]:Program Files\Adobe\Adobe Photoshop CC 2019\Presets\Scripts
  3. Copy and paste the file “Export Layers to Files.jsx” somewhere, e.g., Desktop, rename it.
  4. Now open the file with Wordpad.
  5.  Search for the line fileNameBody += “_” + zeroSuppress(i, 4); and add // infront like this, 
    // fileNameBody += “_” + zeroSuppress(i, 4);
  6. Next, search for the line fileNameBody += “_” + layerName; and change it to fileNameBody += layerName;
  7. Save the file and close it. Paste the file into [your drive]:Program Files\Adobe\Adobe Photoshop CC 2019\Presets\Scripts
  8. Run Adobe Photoshop and you will see 2 lines of “Export Layers to Files..”. One of the options will export without the number sequences. 
    Why do I do this? Having 2 sets of scripts will prevent Adobe from overwriting the file during the software updates.
 
*Updates on 17th Nov 2019 
There seems to have some changes with Photoshop CC 2020’s script.
Download this script file if you’re using the latest Photoshop CC 2020 here.

15 thoughts on “Photoshop CC – Removing Number Sequence for Export Layers to Files”

  1. Just Awesome!!!!! I have been trying to do this for months! downloaded your script and it works beautifully!!!!! Thanks!!! Thanks!!! Thanks!!!! Sooooooo much!!!!

  2. Hi there MATTO!

    I’m really glad I have found your guide, but I got an issue, i can’t find “fileNameBody += “_” + layerName; and change it to fileNameBody += layerName;”

    I am using Photoshop 2021 22.0.0 Release.

    Can you upload a script for that version, or help me what line should I search for instead of the above one?

    Thanks for your help in advance

  3. We are a group of volunteers and starting a new scheme in our community. Your site provided us with valuable info to work on. You have done an impressive job and our entire community will be thankful to you.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

You May Also Like

Cloudways Web Hosting Summer Deal Banner Image

Cloudways Summer Deal: Up to 30% OFF + Free SSL Certificate

It’s an oversight! There is a summer deal for Cloudways until 25th August 2022 -> Get 30% off all plans for 6 months! This amounts to almost two months of free hosting.  What is Cloudways Web Hosting? Cloudways simplifies your web hosting experience with a managed cloud hosting platform. As opposed to traditional hosting providers using

Elementor is 6 years old! Up to 60% off everything.

Interested in creating your own website or becoming a web designer? Have you been struggling with WordPress for too long? It’s about time you tried Elementor, a WordPress page builder! What is Elementor? Elementor is a revolutionary WordPress plugin that enables you to create beautiful, dynamic, responsive pages quickly. Your WordPress website is at your

Free resources for your design project
Why I chose Astra Theme over Neve Theme
How to change the background color of the WooCommerce Store Notice
Photoshop CC - Removing Number Sequence for Export Layers to Files
How to save money on IT expenses with Appsumo
Elementor is 6 years old! Up to 60% off everything.
1 2 3 4
I hope that the information I have shared will prove useful for your business or work. If you find it valuable, I would greatly appreciate your support through a tip to help with the maintenance of the website. Thank you!
 
Scroll to Top