Ai Merge

Download Ai Merge
Download is available until [expire_date]
  • Version 1.0
  • Download 156
  • File Size 11 KB
  • File Count 1
  • Create Date December 5, 2018
  • Last Updated December 5, 2018

Ai Merge

This script is a JSX (JavaScript Extension) script for Adobe Illustrator to merge a folder of SVG, AI, PDF, and/or EPS files into a single Illustrator document. The script creates a new artboard named according to the file name (minus the file extension), places the file contents, centers the object, and aligns to the nearest pixel.


I am a freelance developer and your donations help me continue to create free resources. You can donate to this project using the button below. Every bit helps.


Before You Start

This script has only been tested on Adobe Illustrator CC 2014. It was written to complete a one-off personal project. If you find it useful, fantastic. But I cannot verify whether or not it will work on every system.


  1. Place this script in Applications/Adobe Illustrator CC 2018/Presets/en_US/Scripts/

    If you are not using the US English translation of Adobe Illustrator,
    the `en_US` folder will match that of your translation.

    Also, the Adobe Illustrator folder may have a different name depending on which version of Illustrator you have installed.

  2. Restart Adobe Illustrator to activate the script
  3. The script will be available under menu File > Scripts > Ai Merge.
  4. Enter values in the dialog for Artboard Width, Artboard Height, Artboard Spacing
  5. Choose the folder of SVG, AI, PDF, and/or EPS files. Nested folders are fine. The script will search through any nested folders for any files matching the specified file types.
  6. When the script runs, you will be asked to select a source folder of files you want to merge. The script will ignore any files that do not match the selected types.
  7. The script will create a new Adobe Illustrator document with an artboard for each file. Please note that Adobe Illustrator allows up to 1,000 artboards so the script will only work on the first 1,000 files it finds.
  8. If logging is enabled (in the startup dialog) the script will create a log file named ai-script-log.txt on the Desktop of your computer. To turn this off, set the variable named logging to false near the top of the script.


You are free to use, modify, and distribute this script as you see fit as long as you maintain the copyright notices in the original source files. A link to the Atomic Lotus website would be appreciated as well. You must also extend the same license to users of your code. This is not to say that your original code must be open source, but the code from this project must remain free and open forever.

Ai Merge by :

Scott Lewis <>

There may have been other scripts that inspired or were used in the creation of this script. Any omissions of credits are purely accidental. If you recognize an omission, please let me know and I will happily add credit where it is due.

The JSON parser was written by Douglas Crockford. You can get a copy of the original code at

Disclaimer of Liability

This script is offered AS-IS without any warranty or guarantees of any kind. You use this script completely at your own risk and under no circumstances will the developer and/or distributor of this script be held liable for damages of any kind including loss of data or damage to hardware or software. If you do not agree to these terms, do not use this script.