Grid Arranger

Grid Arranger

Script for Adobe Illustrator

✦ Available exclusively on Patreon for Pro supporters.

ㅤ

Description

Grid Arranger organizes two or more selected Adobe Illustrator objects into a precise, customizable grid. It combines live arrangement controls, flexible spacing and alignment, alternate row or column offsets, sorting, grouping, and visual inspection tools in one compact dialog.

ㅤ

Features

Build regular or offset grids while keeping control over object order, spacing, alignment, preview behavior, and final output.

  • Interactive grid editor — Preview the grid structure, change row and column counts, drag gutter dividers, link gutters, and cycle layout modes from one visual control.
  • Flexible dimensions — Set rows or columns from 1 up to the number of selected objects, with the complementary value calculated automatically.
  • Signed gutters — Adjust horizontal and vertical spacing from −2000 px to 2000 px, including negative values for overlapping layouts.
  • Independent alignment — Align objects left, center, or right horizontally and top, center, or bottom vertically inside cells based on visible bounds.
  • Offset layouts — Use Classic, Shift Rows, or Shift Columns and set the alternating offset from −100% to 100% of one grid step.
  • Six sorting methods — Order objects by horizontal position, vertical position, total visible size, visible width, visible height, or a randomized sequence.
  • Order controls — Reverse deterministic sort results or reshuffle items whenever Random Order is selected.
  • Layer-safe grouping — Keep arranged objects separate or create an Elements Grid group within each original source layer while preserving stacking order.
  • Live inspection — Toggle live Preview, temporarily hide selection edges, fit the arranged objects in the window, or display dashed grid cells on a temporary layer.
  • Built-in user guide — Open a searchable, offline guide from the footer, including dedicated pages for Classic Grid, Shift Rows, and Shift Columns.
  • Safe cancellation — Canceling, pressing Escape, or closing the dialog restores the artwork state from before the active preview.

ㅤ

image gallery
Before / After

ㅤ

Installation

1. Download the Grid Arranger.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

4. Access the script via File > Scripts > Grid Arranger

5. Alternatively, run it directly via File > Scripts > Other Script... and browse to the file location

Tip: You can also drag and drop the .jsx file directly onto the Illustrator workspace to run the script instantly – no installation needed.

ㅤ

Using the Script

ㅤ

Launch the Script

Grid Arranger needs an open Illustrator document and at least two selected objects.

  1. Open the document containing the artwork you want to arrange.
  2. Select two or more objects with the Selection tool.
  3. Choose File > Scripts > Grid Arranger, or launch the JSX file directly.
  4. Use the dialog that opens to configure the grid while Preview shows the result on the artboard.

ㅤ

ㅤ

image gallery

ㅤ

ㅤ

➊ Select the Artwork

The selection captured when the script starts becomes the working set. Grid Arranger uses each object's visible bounds, including visible strokes and effects, when measuring, sorting, aligning, and placing the objects.

  • Select every object that should be included before launching the script.
  • Keep objects on their existing layers if their layer organization must be preserved.
  • Unlock the artwork and its parent layers before arranging it.
  • If no document is open, the script prompts you to open one.
  • If fewer than two objects are selected, the script prompts you to make a valid selection.

ㅤ

ㅤ

➋ Set Grid Dimensions

The grid starts with up to four columns. Rows are calculated automatically from the number of selected objects, and changing either dimension recalculates the other so the complete selection still fits.

  • Enter an exact value in the Columns or Rows field.
  • Drag the corresponding slider or use its arrow buttons.
  • Click the Columns or Rows label to add one division.
  • Use the row and column minus or plus controls in the interactive grid editor.
  • Hold Shift while clicking an editor stepper to change the value by five.
  • Double-click or right-click a slider to restore its startup value.
  • Keep each value between 1 and the number of selected objects.

For selections of 50 or more objects, continuous slider movement is deferred and the artwork preview updates when the interaction finishes, improving responsiveness.

ㅤ

ㅤ

➌ Adjust Gutters

Horizontal and Vertical gutters control the distance between grid cells. Positive values add space, zero places cells directly beside one another, and negative values create overlap.

  • Type a value from −2000 px to 2000 px in either gutter field.
  • Drag a gutter slider for continuous adjustment.
  • Drag a vertical or horizontal divider in the interactive grid editor.
  • Hold Shift while dragging an editor divider to snap the gutter to 5 px increments.
  • Click a gutter label to increase its value by 1 px.
  • Click the reset dot beside a modified gutter to return it to 0 px.
  • Turn on Link Gutters to copy the horizontal value to the vertical gutter and keep both values synchronized.
  • Leave Link Gutters off to control each axis independently.

ㅤ

ㅤ

➍ Choose Alignment

Alignment determines where differently sized objects sit within cells based on the largest visible width and height in the selection.

  • Choose Left, Center, or Right for horizontal alignment.
  • Choose Top, Center, or Bottom for vertical alignment.
  • Combine horizontal and vertical settings freely, such as Left with Bottom.
  • Watch the interactive grid editor and live artwork preview to confirm the placement.

ㅤ

ㅤ

➎ Choose a Layout and Offset

Layout controls whether alternating rows or columns are displaced from the classic grid. The Offset % control becomes available when Shift Rows or Shift Columns is selected.

  • Classic — Keeps every row and column on the standard grid.
  • Shift Rows — Moves every other row horizontally.
  • Shift Columns — Moves every other column vertically.
image gallery
A: Classic / B: Shift Rows / C: Shift Columns

ㅤ

  • Offset % — Sets the displacement from −100% to 100% of one horizontal or vertical grid step.
  • Positive values — Shift alternating rows to the right or alternating columns downward.
  • Negative values — Shift alternating rows to the left or alternating columns upward.
  • Reset — Click the Offset % label or reset dot to restore the default 50% offset.

You can select a mode from the Layout control or click the layout readout in the interactive editor to cycle through all three modes.

ㅤ

ㅤ

➏ Set Sorting and Output

The selected sort method determines the order in which objects fill the grid from left to right, then from top to bottom.

  • Position X — Sorts objects from left to right.
  • Width — Sorts objects from widest to narrowest using visible bounds.
  • Total Size — Sorts objects from largest to smallest visible area.
  • Position Y — Sorts objects from top to bottom and is selected by default.
  • Height — Sorts objects from tallest to shortest using visible bounds.
  • Random Order — Shuffles the selected objects before filling the grid.

ㅤ

Use the output controls to refine the result.

  • Turn on Reverse Order to invert any deterministic sorting method.
  • Select Random Order to enable Shuffle and disable Reverse Order.
  • Click Shuffle to generate another randomized arrangement.
  • Leave the output Ungrouped to preserve separate objects.
  • Turn on Grouped to create an Elements Grid group within each original source layer after applying the arrangement.

ㅤ

ㅤ

➐ Preview and Inspect

Preview is enabled by default. Every completed control change removes the previous temporary arrangement, calculates the new result, and redraws the document so preview operations do not accumulate.

  • Toggle Preview OFF to restore the artwork to its pre-preview positions while keeping the dialog open.
  • Toggle Preview ON to apply the current settings temporarily.
  • Use Hide Edges to hide or show Illustrator's selection edges without deselecting the working objects.
  • Use Zoom to fit the selected artwork in the active window.
  • Turn Zoom off to restore the view center and zoom level captured when the dialog opened.
  • Use the grid-cells button to show dashed cell outlines on a locked temporary layer.
  • Turn the grid-cells button off to remove the temporary layer.

The dashed grid-cell overlay is for inspection only. It is removed when the dialog closes and is not included in the final artwork.

ㅤ

ㅤ

➑ Apply or Cancel

Finish the operation with the controls on the right side of the action bar.

  • Click OK or press Enter to remove the temporary preview, apply one final arrangement, optionally group the result, and close the dialog.
  • Click Cancel, press Escape, or close the dialog to undo the active preview and preserve the original arrangement.
  • Option-click or Alt-click Cancel to reset Columns, Rows, both gutters, Layout, and Offset % to their defaults without closing the dialog.

ㅤ

ㅤ

➒ Shortcuts and Troubleshooting

Use these keyboard and pointer controls for faster adjustments.

  • Press Up or Down in a numeric field to change its value by 1.
  • Hold Shift with Up or Down in Columns, Rows, or a gutter field to change the value by 5.
  • Hold Ctrl with Up or Down in a gutter field to change the value by 0.1.
  • Press Ctrl + Right in Horizontal to copy its value to Vertical.
  • Press Ctrl + Left in Vertical to copy its value to Horizontal.
  • Use arrow keys in Layout, Alignment, or Sort controls to move between choices.
  • Press Home or End in a choice control to select its first or last option.
  • Press Space or Enter on a focused icon button to activate it.
  • Use a slider's arrows, track, thumb, or mouse wheel to adjust its value.
  • Hold Shift while using a slider for larger steps.
  • Hold Option or Alt while using a slider for fine adjustment or a direct track jump.
  • Double-click or right-click a slider to restore its default value.

ㅤ

If the result is unexpected, check these common causes.

  • Overlapping objects usually indicate a negative horizontal or vertical gutter.
  • Uneven-looking cells can result from objects with different visible bounds, strokes, or effects.
  • A changing random layout is expected whenever Random Order is recalculated; use Shuffle when you want another variation.
  • Missing dashed cells can indicate that the grid-cells button is off or the temporary overlay was removed by a preview refresh.
  • A script missing from Illustrator's Scripts menu usually requires checking the installation folder and restarting Illustrator.

ㅤ

ㅤ

☻ Wrap-Up

Grid Arranger turns a mixed selection into a structured grid while keeping spacing, alignment, ordering, offsets, and grouping under direct control. Use Preview and the inspection tools to refine the layout safely, then apply the final arrangement with OK or leave the artwork unchanged with Cancel.

ㅤ

ㅤ

Leave a comment

Grid Arranger

Version: 2.0.3

Updated:

    • 2.0.2 — Added regular/Large Canvas measurement normalization using Illustrator's document scale factor, ensuring full-size gutter spacing in Preview and final output. Added dialog-wide Enter/Return handling for OK and strengthened Escape cancellation so active previews and temporary UI state are cleaned up reliably.
    • 2.0.1 — Added safe inline arithmetic to all numeric fields, including parentheses, decimals, scientific notation, and common Unicode operators. Improved live numeric synchronization, range validation, invalid-input recovery, and consistency between Preview and final processing.
    • 2.0.0 — Public release of the re-imagined script version.
    • 1.2.0 — Added a resizable built-in User Guide with search, mode pages, installation-path detection, keyboard navigation, and offline documentation.
    • 1.1.9 — Added sort cards and keyboard navigation, optimized large selections, corrected visible-bounds sorting, and improved grouping, zoom, and overlay cleanup.
    • 1.1.8 — Added the optional dashed grid-cell overlay on a temporary locked layer.
    • 1.1.7 — Added Classic, Shift Rows, and Shift Columns layouts with an adjustable −100% to 100% offset.
    • 1.1.6 — Added the interactive grid editor for visual dimension, gutter, linking, and layout feedback.
    • 1.1.5 — Added segmented alignment controls, a custom sorting control, and consolidated icon-based options.
    • 1.1.4 — Added the dedicated Shuffle action and refined grouping and order controls.
    • 1.1.3 — Introduced labeled icon toggles and improved the compact control layout.
    • 1.1.2 — Added custom sliders, direct row and column controls, gutter reset dots, and synchronized numeric inputs.
    • 1.1.1 — Added the custom action bar with Preview, Hide Edges, Zoom, Cancel, OK, and numeric reset behavior.
    • 1.1.0 — Added the theme-aware footer with website, online guide, and Patreon support links.
    • 1.0.9 — Added the Zoom in Window toggle with original-view restoration.
    • 1.0.8 — Added the live Preview toggle and preview-aware cancellation.
    • 1.0.7 — Added Shift Rows for brick layouts and converted Shuffle into a dedicated button.
    • 1.0.6 — Added Link Gutters to synchronize horizontal and vertical spacing.
    • 1.0.5 — Added an on-demand Shuffle control for randomized arrangements.
    • 1.0.4 — Refined hover and click feedback for footer links.
    • 1.0.3 — Added right-click and Ctrl-click resets for grid and gutter sliders.
    • 1.0.2 — Added a zoom-to-fit button for the selected artwork.
    • 1.0.1 — Added scrollbar controls, expanded gutter ranges, and interactive footer links.
    • 1.0.0 — Initial public release of Grid Arranger.

    ㅤ

    ㅤ

    Tested on MacOS:

    ㅤ

    • Adobe Illustrator 2023 (27.0)
    • Adobe Illustrator 2024 (28.1)
    • Adobe Illustrator 2025 (29.0)
    • Adobe Illustrator 2026 (30.3)

    ㅤ

    Tested on Windows:

    ㅤ

    • Adobe Illustrator 2025 (29.3)
  • 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 Gradient Type Switcher
    Gradient Type Switcher

    Gradient Type Switcher

    Gradient Type Switcher converts gradient fills and strokes between linear and radial types in Adobe Illustrator. 

    Explore
  2. Explore Sequential Text Numbering
    Sequential Text Numbering

    Sequential Text Numbering

    Sequential Text Numbering automates numbering and labeling across selected text frames in Adobe Illustrator.

    Explore
  3. Explore Quick Resize
    Quick Resize

    Quick Resize

    Quick Resize is a floating panel for Adobe Illustrator that resizes selected objects to an exact width or height.

    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 Grid Arranger.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 Grid Arranger.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 Illustrator: To 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 Grid Arranger script to run it.
    5. The Grid Arranger 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!