Smart Artboard Aligner

Smart Artboard Aligner

Script for Adobe Illustrator

✦ Available exclusively on Patreon for Pro supporters.

Description

Smart Artboard Aligner is an Adobe Illustrator script that provides powerful tools for aligning and distributing objects to artboards. Whether you need to center objects on their parent artboards, distribute items across empty artboards, or resize objects to fit artboard dimensions, this script streamlines your workflow with an intuitive interface.

Features

  • Multiple alignment modes for different workflow scenarios
  • 9-point reference system for precise positioning (corners, edges, and center)
  • Flexible resizing options (keep original size, fit proportionally, or stretch to fit)
  • Geometric or visible bounds alignment
  • Individual or group alignment for multi-object handling
  • Interactive artboard selection with preview capability
  • Progress tracking for batch operations

Installation

1. Download the Smart Artboard Aligner.jsx script file.

2. Place the script in your Adobe Illustrator Scripts folder:

⮑ Mac: /Applications/Adobe Illustrator <Version>/Presets/<Language>/Scripts

⮑ Windows: C:\Program Files\Adobe\Adobe Illustrator <Version>\Presets\<Language>\Scripts

3. Restart Adobe Illustrator if it's already running.

Using the Script

  1. Open your Illustrator document with artboards and objects
  2. Access the script via File > Scripts > Smart Artboard Aligner
  3. The dialog window will appear with all available options

image gallery

➊ Choose Your Alignment Mode

The script offers six different alignment modes in the "What to Align" panel:

🅰 Align all objects to their parent artboards

  • What it does: Processes every artboard in the document and aligns all objects on each artboard to that artboard
  • When to use: Batch-centering or aligning all content across multiple artboards
  • Selection required: No

🅱 Align all objects to selected artboards

  • What it does: Only processes artboards you select from the list, aligning all objects on those artboards
  • When to use: When you want to align content on specific artboards only
  • Selection required: No (but you must select artboards from the list)
  • How to select artboards: Click artboards in the list (Ctrl/Cmd+click for multiple)

🅲 Align selected objects to their parent artboards

  • What it does: Only aligns objects you've selected, placing each on its parent artboard
  • When to use: Fine-tuning specific objects without affecting others
  • Selection required: Yes

🅳 Align selection to active artboard

  • What it does: Moves all selected objects to the currently active artboard
  • When to use: Consolidating objects from different artboards onto one artboard
  • Selection required: Yes

🅴 Distribute selection to empty artboards

  • What it does: Places each selected object on a separate empty artboard
  • When to use: Creating individual artboards for each object (e.g., exporting icons)
  • Selection required: Yes
  • Note: Number of selected objects cannot exceed number of empty artboards

🅵 Distribute selection to selected artboards

  • What it does: Places selected objects one-by-one onto artboards you choose from the list
  • When to use: Precise control over which object goes to which artboard
  • Selection required: Yes (both objects and artboards from the list)
  • Note: Number of selected objects cannot exceed number of selected artboards


➋ Select Artboards (if applicable)

For modes 🅱 and 🅵, you'll need to select artboards from the "Select Artboards" list:

  • Single selection: Click an artboard
  • Multiple selection: Ctrl/Cmd+click multiple artboards
  • Preview artboard: Double-click any artboard in the list to zoom to it in your document
  • The list shows artboard number and name in two columns
image gallery


➌ Choose Alignment Bounds

In the "Alignment Bounds" panel, select how objects should be measured:

  • Geometric bounds (paths only): Uses only the object's path geometry, ignoring stroke width and effects
  • Best for: Precise path alignment, technical drawings
  • Visible bounds (stroke + effects): Includes stroke width, effects, and everything visible
  • Best for: Visual alignment, what you see is what you get

➍ Set Reference Point

In the "Ref. Point" panel, click one of the 9 positions to set where objects should align:

image gallery

  • Top-left (↖): Aligns to top-left corner of artboard
  • Top (↑): Aligns to top-center of artboard
  • Top-right (↗): Aligns to top-right corner of artboard
  • Left (←): Aligns to middle-left of artboard
  • Center (+): Aligns to center of artboard (default)
  • Right (→): Aligns to middle-right of artboard
  • Bottom-left (↙): Aligns to bottom-left corner of artboard
  • Bottom (↓): Aligns to bottom-center of artboard
  • Bottom-right (↘): Aligns to bottom-right corner of artboard


➎ Choose Resize Mode

In the "Resize Mode" panel, select how objects should be sized:

  • Keep original size: Objects maintain their current dimensions (default)
  • Fit proportionally: Objects resize to fit the artboard while maintaining aspect ratio
  • Stretch to fit: Objects stretch to exactly match artboard dimensions (may distort)

ㅤㅤ


➏ Set Multi-Object Handling

In the "Multi-Object Handling" panel, choose how multiple objects on the same artboard are processed:

  • Treat as single group: All objects on an artboard are aligned together as one unit (default)
  • The bounding box of all objects combined is used for alignment
  • Align each object individually: Each object is aligned separately to the reference point
  • Every object will align to the same position (may overlap)


➐ Execute

Click OK to apply the alignment. A progress bar will show the operation status.

Other buttons:

  • Cancel: Close the dialog without making changes
  • ✚ (Fit All): Fit all artboards in the window for better overview

General Tips

  • Save your work first: Always save before running batch operations
  • Test on a copy: Try the script on a duplicate document first to understand the results
  • Use Undo: If results aren't what you expected, press Ctrl/Cmd+Z to undo
  • Preview artboards: Double-click artboards in the list to zoom to them before processing

Performance Tips

  • Progress bar: For large operations, a progress window shows real-time status
  • Guides are ignored: The script automatically ignores guide objects
  • Text handling: Text frames are converted to outlines temporarily for accurate bounds calculation


Practical Examples

Example 1: Center All Logos on Their Artboards

Scenario: You have 20 artboards, each with a logo that needs to be centered.

  1. Run the script
  2. Select: "Align all objects to their parent artboards"
  3. Set reference point to: Center (+)
  4. Choose: "Geometric bounds"
  5. Keep: "Keep original size"
  6. Select: "Treat as single group"
  7. Click OK

Example 2: Distribute Icons to Individual Artboards

Scenario: You have 15 icon objects selected and want each on its own empty artboard.

  1. Select all 15 icons
  2. Run the script
  3. Select: "Distribute selection to empty artboards"
  4. Set reference point to: Center (+)
  5. Choose: "Visible bounds"
  6. Select: +"Fit proportionally" (if you want icons to fill artboards)
  7. Click OK

Example 3: Align Specific Objects on Selected Artboards

Scenario: You want to align content only on artboards 3, 7, and 12.

  1. Run the script
  2. Select: "Align all objects to selected artboards"
  3. In the artboard list, Ctrl/Cmd+click artboards 3, 7, and 12
  4. Set your desired reference point
  5. Choose bounds type and resize mode
  6. Click OK

Example 4: Create Uniform Product Shots

Scenario: You have product photos of different sizes that need to fit uniformly on artboards.

  1. Select all product images
  2. Run the script
  3. Select: "Align selected objects to their parent artboards"
  4. Set reference point to: Center (+)
  5. Choose: "Visible bounds"
  6. Select: +"Fit proportionally" (maintains aspect ratio)
  7. Click OK


☻ Conclusion

Smart Artboard Aligner streamlines your Adobe Illustrator workflow by automating complex alignment and distribution tasks that would otherwise require tedious manual positioning.

With its flexible modes, intuitive interface, and powerful batch processing capabilities, you can save hours on repetitive alignment work and focus on what matters most – your creative vision.

Leave a comment

Smart Artboard Aligner

Version: 1.0.1

Updated:

  • 1.0.0 – Initial release.
    1.0.1 – Fit all artboards in window by clicking the ✚ button.

    Tested on MacOS:

    • Adobe Illustrator 2023 (27.0)
    • Adobe Illustrator 2024 (28.1)
    • Adobe Illustrator 2025 (29.0)
  • Supported Versions:

    • Compatible with Adobe Illustrator CS6 and later, including Adobe Illustrator CC versions.

    Operating Systems:

    • Works on both macOS and Windows platforms.
  • End User License Agreement (EULA)

    Last Updated: 21.12.2024

    This End User License Agreement (“Agreement”) is a legal agreement between you (“User” or “Licensee”) and Samolevsky.com (“Licensor”) regarding the use of the Adobe Illustrator scripts (“Software”). By downloading, installing, or using the Software, you agree to be bound by the terms of this Agreement.

    1. Grant of License

    Licensor grants the User a non-exclusive, non-transferable, and revocable license to use the Software in accordance with this Agreement.

    • Free Software: If the Software is provided for free, you may use it for personal or commercial purposes without payment, subject to the restrictions outlined in this Agreement.
    • Paid Software: If the Software is provided for a fee, you may use it only after payment has been made in full.

    2. Usage Rights

    You are permitted to:

    • Install and use the Software on devices you own or control.
    • Use the Software in your personal or commercial projects, subject to compliance with this Agreement.

    3. Restrictions

    You may NOT:

    • Reverse engineer, decompile, or otherwise attempt to discover the source code, underlying ideas, or algorithms of the Software.
    • Reuse, incorporate, or integrate any portion of the Software into any other software, product, or project, except as expressly permitted by the Licensor in writing.
    • Resell, redistribute, or share the Software, whether in its original or modified form, without prior written consent from the Licensor.
    • Claim ownership of the Software or its underlying code.
    • Use the Software in any way that violates applicable laws or regulations.

    4. Ownership

    The Software and all intellectual property rights therein remain the exclusive property of the Licensor. This Agreement does not transfer ownership of the Software or any intellectual property rights to the User.

    5. Disclaimer of Warranties

    THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE LICENSOR BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

    6. Limitation of Liability

    To the maximum extent permitted by law, Licensor shall not be liable for any damages, including but not limited to direct, indirect, incidental, special, or consequential damages, arising out of or related to the use or inability to use the Software.

    7. Termination

    This Agreement is effective until terminated. Licensor may terminate this Agreement immediately if you breach any term of this Agreement. Upon termination, you must cease all use of the Software and destroy any copies in your possession.

    8. Updates and Support

    Licensor is not obligated to provide updates, support, or maintenance for the Software. However, updates may be provided at the sole discretion of the Licensor.

    9. Governing Law

    This Agreement shall be governed by and construed in accordance with the laws of the State of New York, without regard to its conflict of law principles.

    10. Entire Agreement

    This Agreement constitutes the entire agreement between you and the Licensor concerning the Software and supersedes all prior or contemporaneous understandings regarding such subject matter.

    By using the Software, you acknowledge that you have read this Agreement, understand it, and agree to be bound by its terms.

    For any questions or concerns regarding this Agreement, please contact us at hello@samolevsky.com

Browse More Scripts

  1. Explore Selection to HEX
    Selection to HEX

    Selection to HEX

    An Adobe Illustrator script that extracts HEX color codes from selected objects. Perfect for designers who need to quickly grab color palettes from their artwork.

    Explore
  2. Explore HEX to Swatches
    HEX to Swatches

    HEX to Swatches

    HEX to Swatches is a powerful and intuitive Adobe Illustrator script that streamlines your color workflow. Paste any list of HEX color codes — from raw text, #HEX notation, or even a Coolors.co palette URL — and instantly generate a named swatch group or a smooth gradient.

    Explore
  3. Explore Text Splitter
    Text Splitter

    Text Splitter

    Text Splitter is a powerful Adobe Illustrator script that allows you to split text frames into individual lines, words, or characters. 

    Explore

Introducing ScriptBox

Your Complete Adobe Illustrator Productivity Hub

Required Software

Adobe Illustrator

Adobe Illustrator is a professional vector graphics software developed by Adobe Inc. It is widely used by designers, illustrators, and artists for creating a variety of digital artwork, including logos, icons, illustrations, typography, and complex design layouts. Illustrator is known for its precision and scalability, allowing users to create high-quality graphics that can be resized without losing clarity. Its features include powerful drawing tools, customizable brushes, advanced typography options, and seamless integration with other Adobe Creative Cloud applications. Illustrator is a go-to tool for creative professionals working on projects for print, web, and multimedia platforms.

  • 🅰 Locating the Scripts Folder

    To install a Smart Artboard Aligner.jsx script in Adobe Illustrator, you need to place it in the correct directory where Illustrator
can recognize it. Follow these steps to locate the Scripts folder:

    1. MacOS:
      Open Finder and navigate to:
      Applications/Adobe Illustrator <Version>/Presets/<Language>/Scripts
    2. Windows:
      Open File Explorer and navigate to:
      C:\Program Files\Adobe\Adobe Illustrator <Version>\Presets\<Language>\Scripts
    3. Replace <Version> with your Adobe Illustrator version (e.g., 2025).
    4. Replace <Language> with your language folder (e.g., "de_DE" for German, "en_US" for English).

    🅱 Installing the Script

    1. Copy the Script File: Copy the Smart Artboard Aligner.jsx file to the Scripts folder located in the path above.
    2. On some systems, you may need administrator permissions to modify the Scripts folder.
    3. Restart Adobe IllustratorTo refresh the scripts menu, close and reopen Adobe Illustrator.

    Explore our complete guide to mastering Adobe Illustrator scripts.

    1. Open Adobe Illustrator and ensure a document is active.
    2. Go to the top menu bar and select File > Scripts.
    3. If the script is installed in the Scripts folder, it will appear in the dropdown list.
    4. Click the Smart Artboard Aligner script to run it.
    5. The Smart Artboard Aligner script will execute, and any dialog boxes or results will appear based on the script’s functionality.

    ☻ Before running any scripts, it’s strongly advised to save your work — especially when working with complex or large documents.

Got questions?

Need help or have an idea to share? We’d love to hear from you! Whether you have questions, found a bug, have a feature request, or just want to share your feedback, reach out to us—we’re here for you!