If you are working with a document with multiple layers, and you would like to make each layer its own separate file, go to File, Scripts, “Export Layers to Files.” In the following window, choose the destination, name prefix, and file type for the images, then click Run.