The Ai2Psd script may help to prepare vector layers for export from AI to PSD file.
| Object | Support | Format |
|---|---|---|
| Basic shapes | YES | Editable |
| Path shapes | YES | Editable |
| Groups | YES | Editable |
| Text | YES | Editable |
| Fills | YES | Editable |
| Clipping Paths | YES | Editable |
| Gradients | NO | Rasterized |
| Strokes | NO | Rasterized |
| Filter Effects | NO | Clear |
P.S. Some layers in the PSD could get merged randomly...in Adobe Illustrator 2026 there's still no reliable way to control it. We tried!
Warning
You must have the Layers panel shown and expanded on the screen for the script to work properly.The script makes changes to the opened file, so it is better to copy and run it.
You can't rerun the script on a file that has already been processed. First, use
File → Revertto revert to the previously saved state.
En: How to export an Illustrator file into a vector layered Photoshop file
Ru: Экспортируем векторные слои из AI в PSD
Should work with Adobe Illustrator CS6 and later.
The script has been tested on Illustrator CS6 (Windows 7), Illustrator CC 2017-2026 (Windows 10, Mac OS).
- Download archive and unzip. All scripts are in the folder
jsx - Place
Ai2Psd.jsxin the Illustrator Scripts folder:- OS X:
/Applications/Adobe Illustrator [vers.]/Presets.localized/en_GB/Scripts - Windows (32 bit):
C:\Program Files (x86)\Adobe\Adobe Illustrator [vers.]\Presets\en_GB\Scripts\ - Windows (64 bit):
C:\Program Files\Adobe\Adobe Illustrator [vers.] (64 Bit)\Presets\en_GB\Scripts\ - RU lang:
C:\Program Files\Adobe\Adobe Illustrator [версия]\Стили\ru_RU\Сценарии\
- OS X:
- Restart Illustrator
Drag and drop the script file (JS or JSX) onto the tabs of Illustrator documents. If you drag it to the area of the open document, the script may not work correctly (Adobe bug).
I recommend the Scripshon Trees or LAScripts panel. In it you can specify which folder your script files are stored in.
You can use them to create macros to run scripts with hotkeys.
- SPAi (Mac OS, free)
- Hammerspoon (Mac OS, free)
- Keyboard Maestro (Mac OS, paid)
- BetterTouchTool (Mac OS, paid)
- AutoHotkey (Windows, free)
Warning
To run scripts via the F1-F15 hotkeys, users add them to the Actions panel. If another action is running inside the script, Illustrator will freeze. How do you check it? Open the script in a text editor, if you find app.doScript() in the code, it is using an action. This is in all versions from CS6 to CC 2025 on Mac and Windows.
- Open document(s) in Adobe Illustrator or go next step
- Choose
File → Scripts → Ai2Psd - Choose settings
- Click the Export button
- Wait for completion
Note
If the Ai document is not saved, the PSD is exported to the desktop.
Note
On low-spec computers, I recommend switching Illustrator to full screen mode to speed up the script.
If you want to save the vector stroke in the PSD, then you have to select the object and use Object → Path → Outline Stroke.
If you have a large group of small objects, e.g. hair brush draws, fur or outlined text, it'd be better for the to combine such elements into the Compound Path with Object → Compound Path → Make before the script is executed.
Note
Meshes, objects with a gradient fill or Spot color, pattern, various strokes can't be left as vectors after the export, but they will be separate raster layers in the PSD file.
- Mateusz Nowak: “Thanks for Ai-to-Psd script!”
- Dilyana Aleksandrova: “ai to psd saved my ass at work man, thank you for sharing it!”
- Weyn Cueva: “This is amazing! I’ve been looking for something similar because I work more in Photoshop. Thank you.”
- Maggie Stilwell: “This is awesome! A great timesaver. Thank you for sharing it.”
- datenshi_blue: “It is a great script, i downloaded it to and i love it”
- Michael Helmrich: "This is really powerful! Thank you for sharing"
Many scripts are free to download thanks to user support. Help me to develop new scripts and update existing ones by supporting my work with any amount via Buymeacoffee USD, CloudTips RUB, ЮMoney RUB, Tinkoff RUB, Donatty RUB, DonatePay RUB. Thank you.
| Version | Notes |
|---|---|
| v4.1 | Fixed Adobe Illustrator issues. Minor improvements. |
| v4.0 | Added UI with batch export. Minor improvements. |
| v3.0 | Algorithm issues fixed. Added: Saving custom path names, Russian localization. |
| v2.3 | Minor issues fixed. |
| v2.2 | Added progress bar and timer. |
| v2.1 | Fixed unlock and order of objects issue. |
| v2.0 | The script doesn't need to load the helper Action file. |
| v1.3 | Fixed Overprint issue. |
| v1.2 | Improved preformance. |
| v1.1 | The script unlocks visible layers & objects before and the do the rest. |
| v1.0 | Initial Version. |
This script is in active development.
Found a bug? Please submit a new issues on GitHub.
Email hi@sergosokin.ru
Radmir Kashaev: GitHub
Ai2Psd is licensed under the MIT licence.
See the included LICENSE file for more details.




