Illustrator has an option to export a file as a .psd file while keeping layers intact. First, you need to keep one thing in mind, you need to decide first if you will be working on it in RGB or CMYK colorspace in photoshop. Illustrator only lets you export layered psd’s from RGB to RGB or from CMYK to CMYK, not across colorspaces.
For instance, to export a file as a layered RGB file you first need to check if your Document Color Mode within Illustrator is set to the correct value. Go to File>Document Color Mode and make shure it is set to RGB.

Then make sure you have a few layers to export, and keep in mind that multiple objects on the same layer will export as one layer. If you need to break down your illustration to a few layers you can use the Layers palette to create new layers and cut/paste your objects on the new layers (keep in mind that the Paste in Front & Paste in Back functions in the Edit menu will paste objects in exactly the same location on a new layer as they were cut from).

After you make shure you have some layers to export, go to File>Export… and in the dialog box select Photoshop (psd) from the Format dropdown list. Then name your file and click Export.
Now, “Photoshop Export Options” should pop up and you can select a variety of options. At the top of the dialog box you should see a Color Model dropdown list. Make shure this is set to the same setting as the Document Color Mode setting if you want to export as layers. We are now looking at RGB, so select that from the list. The same dropdown menu also has an option to export to Grayscale, using that setting will have the option to export to layers no matter what Document Color Mode you are working on.

Make sure you select Photoshop CS2 from the “Export As” dropdown list (or CS depending on your version), and also make sure Write Layers is selected. If you have some text you can choose to keep it editable within Photoshop by selecting Preserve Text Editability.

Click OK and you’re done.
Now open your exported file in Photoshop and make sure it has your layers intact.
CMYK exporting works the same way, just make sure you have it set correctly in Document Color Mode and select CMYK in the Color Model dropdown list.
UPDATED: It has come to my attention that in some cases Illustrator will give an error while exporting or Photoshop will give an error while opening such a file. In this case it may be that you have a bunch of items around your artboard that you don’t want to export but Illustrator will try to do it anyway.
It is important to remember that Illustrator will not only confine the PSD export to the artboard, but will export everything within the file. Before exporting a PSD you could try cleaning up your file and get rid of things you don’t need to export that are perhaps around the artboard. If not, chances are you’ll get an export error.
UPDATE 2: Since this post has been quite popular and people are having trouble with this I have gone through this process again with CS3.
Illustrator CS3 will export a single layer to PSD to a photoshop layer group. That means all of your art on a single layer in illustrator will export as a layer group with sublayers intact. However if you have compound paths or open shapes on some layers, exporting will likely merge those layers. To export your elements to layers, simply group the ones you want to have as a layer (yes group single shapes too), ann export as shown above. I will post a revised version of this with step by step images soon.

Tuesday, February 27, 2007 at 22:38
I’ve got some tips to improve the performance of photoshop on one of my posts here
http://hackspot.gotdns.com/blog/sysadmin/performance-tips-for-photoshop-cs2-for-windows-xp/
Nice blog you’ve got here. Cheers!
Tuesday, March 6, 2007 at 14:02
[...] De AI a PSD conservando las capas. Archivado en: [...]
Wednesday, March 7, 2007 at 17:12
Did everything, RGB/RGB with write layers and “preserve text…” I still couldnt open the illustrator exported “.psd” file without getting “scratch disk full error” in PS CS2. I have 5gb ram and over 30gb of free scratch disk space in my dual 2GHz G5 (OSX 10.4.8) so I dont think it should be a problem opening a 300dpi letter sized exported 8 mb psd file. I have files that I currently work on that are over 1gb with no problems opening or saving.
Illustrator performance as it goes to later versions is also a big dissapointment to me, seems Adobe just piles features on top making a once excellent tool (
Wednesday, March 7, 2007 at 17:15
hmm, my comment must’ve hit the post character limit
here is the continuation…
… (
Friday, March 9, 2007 at 21:26
BertC: Thanks for your comment.
Illustrator exports a PSD file with all your elements from Illustrator, not just those you have on your artboard. If you have a lot of elements around your artboard those will be exported as well, making a very large canvas seize for Photoshop. You could try cleaning up your file leaving only the elements you wish to export and export again. Hopefully this will help you, but I don’t have the solution for your specific problem without seeing it for myself, but my best guess is that this is the case.
Monday, March 19, 2007 at 16:59
Try to remove all Photoshop temporary files from your scratch disk.
Saturday, July 14, 2007 at 18:59
I’m trying to export as psd however this error pops up in illustrator ‘Some containers in the AI doument have been flattened’ despite selecting the “Write layers’ option. How do i work around that?
Thursday, August 16, 2007 at 13:49
This is a great tip, thanks alot!
Worth noting that you can open a PSD in Illustrator with layers intact and text editable just by going File > Open!
Nice website!
Tuesday, October 2, 2007 at 17:25
Gonna give it a go later this evening with these tips. I thought I did the exact thing you describe, but maybe I missed something.
Monday, October 15, 2007 at 14:19
I am getting the same error as Yolanda. It is generating one layer in my exported PSD when I have 5 layers in Illustrator doc. Any ideas?
Monday, October 15, 2007 at 18:43
Eddie and Yolanda: It’s impossible to say what is going on with your export without knowing how your layers are set up in illustrator. Perhaps it has to do with layers and layer groups. Illustrator will not export layer groups as such to psd layers, only objects defined on root layers. Layer groups will export as one layer.
Also, multiple layers within a clipping mask will export as one layer.
Perhaps you could try breaking your object down into root layers and try it again. What i am supplying here is just an inital tip for the procedure, and of course results may vary.
Wednesday, January 16, 2008 at 5:18
[...] AI: Exporting a layered PSD from Illustrator « SeventySeven http://hackspot.gotdns.com/blog/sysadmin/performance-tips-for-photoshop- cs2-for- windows-xp/. Nice blog you’ve got here. Cheers! … [...]
Sunday, February 10, 2008 at 4:27
The error: ‘Some containers in the AI doument have been flattened’ is probably caused by the Attributes (fill or stroke) of some elements being set to overprint. Check those-
Thursday, April 24, 2008 at 16:42
Dori -
That’s not accurate. I’ve just successfully exported 6 out of 7 illustrator pages with sub-layers to PSD with layers. All of a sudden the 7th document is exporting to only one layer. nothing has changed.
Thursday, April 24, 2008 at 17:41
Update! Problems exporting as layered photoshop from Adobe Illustrator CS2
Found the cause of our dilemma. Actually one of our designers, Blair, found it. A very complex illustration was temporarily removed from the page and then the export was successfully layered into Photoshop. Then we simply pasted the illustration onto a new layer in the PSD file. My advise is to poke around and delete either complex images or maybe an unusual font so that when you export – make sure that the “text editabilty” selection is NOT greyed out. Which was happening to us.
Sunday, May 4, 2008 at 15:55
I’m working with huge tiff files and I need to make a vector layer on top of them. I’ve been opening the tiffs with Illustrator, applying the vectors on a separate layer and then exporting the files in psd format…Works just as described here. But some of the files are so big that I get a “not enough memory” error when I try to export. Any ideas of how to get around this?
Sunday, May 4, 2008 at 15:57
adding to my post…I don’t need to maintain the editability of the vector layer, so I’ve been rasterizing it before I export.
Wednesday, May 21, 2008 at 20:56
In order to export an .ai with multiple layers to a .psd with layers preserved, you need to resize both the dimensions of your artboard (File:Document Setup) and the scale of the layers (Select All, then Object:Transform:Scale… or manually scale holding the “Shift” key). For example, if you ultimately need the final image at 600 width and 400 height, then set your artboard dimensions to this, and then scale your layers inside the new artboard dimensions. Then export as a .psd file (make sure you match RGB or CMYK and select “write layers”). You can then export as a .psd file with layers preserved.
Sunday, July 6, 2008 at 20:50
Thank you, this has been a great help!
Wednesday, July 16, 2008 at 15:34
Taken from Adobe Site:
Write Layers
Exports groups, compound shapes, nested layers, and slices as separate, editable Photoshop layers. Nested layers that are more than five levels deep are merged into a single Photoshop layer. Select Maximum Editability to export transparent objects (that is, objects with an opacity mask, a constant opacity less than 100%, or a blending mode other than Normal) as live, editable Photoshop layers.
Sunday, August 10, 2008 at 11:29
Same with Tony, I can only export (3 layers) layered psd files from illustrator at a 300 resolution on an 8×11 inch artboard size. If I go higher, I get that not enough memory error. But if I’m using Photoshop, I can save my psd work (10 or more layers) at 15×25 feet at 300 res. Wierd.
Saturday, August 23, 2008 at 21:37
I’m having the same problem–Illustrator CS2 keeps merging my PSD layers. I still have Illstrator 9 installed, I guess I’m going to have to open my illustrator files in there and resave them.
Sunday, August 24, 2008 at 4:05
I’m very upset at Adobe about this. I was using Illustrator 9 and have been on pins and needles waiting to get this new version. And I was so impressed with the things it does–but tonight, I’m disappointed. The program is useless to me if I can’t save multiple layers. Ancient Illustrator 9 had no problems whatsoever doing so. It makes me wonder what Adobe was thinking when they made this change.
BTW, reopening the file in 9 didn’t work, because it wouldn’t recognize the newer version. What a bummer! The tips I’ve found here didn’t work either. My work does not go off the edge of the artboard, and I only have a few simple layers–as I was only testing the program for the first time and the file was set to RGB with the correct settings.
Wednesday, September 3, 2008 at 1:51
Export only the area you want by making a bounding box around your artwork, and add crops this way : Edit > Crop Area > Make. It’ll export only that section, layered or not.
Monday, September 8, 2008 at 8:21
with the saving layers to psd I just went as high as I could in the chain of layers (root) and then pressed shift/control/G until it was all ungrouped and then exported…worked perfectly for me after trying several methods of reataining the layers in CS3.
Wednesday, November 5, 2008 at 0:07
I was just looking for a solution to my exported psd file flattening out, and I discovered that the main culprit for this was text being nested into to many “subfolder”.
For example, I had a main layer, then another layer to organize a certain section of my graphics, and then the text was group with another object, and somehow the text was 2 more “folders” deep.
When I brought the text out of those useless folders, the file exported with no problem.
I figure this out by hiding layers and exporting until I figure out what was the problem layer.
riq.
Wednesday, April 15, 2009 at 14:01
Thanks Robin for the ‘overprint fill’ tip. Its just saved me binning a file.
Cheers!