I am very new to Photoshop's powerful working mechanism. I am working on multiple layers having images in it. I want all to export as a JPEG format.

I am doing is, I am copying the layer name and File > Export > Save for web (legacy) > JPEG.

But I want all my layers to be exported one by one and with the same name. Since I have more than 110 layers with different names.

Is there any script or any way in Photoshop to achieve this?

Please see the screenshot below. Image

  • 1
    File > Scripts > Export Layers to Files... Does that work?
    – Scott
    Commented Apr 25 at 20:46
  • @Scott Thanks for replying, but No I tried that also, but it is taking the default name with some number on it For ex. 000001_13_F.JPEG 000002_13_B.JPEG So then I have to remove the initial numbers one by one accordingly. I just want the layer name nothing else attached with it. Commented Apr 26 at 3:39
  • 1
    There are Finder/File Explorer tools to quickly batch rename things. For me, I'd let Photoshop export hot o wants, then just batch rename in the Finder to remove any superfluous numbering.
    – Scott
    Commented Apr 26 at 11:01
  • I understood what you are saying, and I have tried that as well. It does not work when the file names have different values on each file. This method only works when your files have having same names or numbers in it, so that you can find and replace them. But if you are having files like 000001_ 000002_ 000003_ then this method won't work @Scott Commented Apr 26 at 16:35
  • My scenario is different here, I want to export 110 layers with 110 different names. @Scott Commented Apr 26 at 16:36

1 Answer 1



I found my answer, and I am adding the solution here since it might help you in your case.

So the solution was You have to make a small edit in Photoshops > Script > Export layers to Files.jsx

I followed a YouTube video and it worked in my case.


Video Link - https://youtu.be/477T3r2CcjU?si=K7-DYclAdzbufr4G

  1. Find the line fileNameBody += "" + layerName; and delete the ""
  2. Save the changes by going to File > Save
  3. Copy and paste the file back into the Photoshop Scripts folder
  4. Click Overwrite if prompted
  5. Go to File > Export > Export Layers to Files

Your Answer

By clicking β€œPost Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.