Illustrator Script Collection

100 free ExtendScript tools for Adobe Illustrator, covering text, paths, colour, layers, export, effects, cleanup and more. Cross-platform compatible with Illustrator CS6 through CC 2025.

Enter your details to download all 100 scripts.

Browse Scripts

We respect your privacy. See our privacy policy.

What's Included

A production-ready toolkit organised into 10 categories, built by Mapsoft's Illustrator development team.

100 Scripts

Covering text, paths, colour, layers, selection, export, document setup, effects, cleanup and utility operations.

Cross-Platform

All scripts work on both Mac and Windows without modification. Platform-agnostic file paths and no OS-specific APIs.

Production Ready

ScriptUI dialogs for configuration, error handling for edge cases, and full undo support via Ctrl/Cmd+Z.

Installation

Copy to Scripts Folder

1

Locate your Illustrator Scripts folder:

Windows: C:\Program Files\Adobe\Adobe Illustrator [version]\Presets\en_US\Scripts\

Mac: /Applications/Adobe Illustrator [version]/Presets/en_US/Scripts/

2

Copy the script folders (Text, Path, Color, etc.) into the Scripts directory.

3

Restart Illustrator. Scripts will appear under File > Scripts.

Alternative: Run Directly

Go to File > Scripts > Other Script... (Ctrl/Cmd+F12), navigate to the .jsx file and click Open. The script runs immediately.

Tip: Keyboard Shortcuts

For frequently used scripts, assign keyboard shortcuts via Edit > Keyboard Shortcuts > Menu Commands > File > Scripts.

Script Catalogue

Browse all 100 scripts organised by category. Each script includes ScriptUI dialogs for configuration.

Text & Typography

15 scripts

Scripts for manipulating text frames, fonts, and typographic properties.

ScriptDescriptionUse Case
ConvertPointToAreaText.jsxConverts point text to area text with auto-sized boundsReformatting legacy text for responsive layouts
FindReplaceInSelection.jsxFind and replace text within selected frames onlyTargeted text edits without affecting entire document
SetTextSizeByDialog.jsxSet font size with absolute, relative (+5), or percentage (150%) modesQuick bulk font size adjustments
ListAllFontsUsed.jsxLists all fonts with usage counts, exportable to filePre-flight font auditing before handoff
ChangeTextCase.jsxUPPER, lower, Title, Sentence, or tOGGLE case conversionFixing text case without retyping
SplitTextFrameByLines.jsxSplits multi-line text into individual text frames per lineAnimating or individually positioning text lines
JoinTextFrames.jsxMerges multiple text frames into one with sort optionsConsolidating scattered text into a single frame
TextFrameAutofit.jsxAuto-resizes area text frames to fit their contentEliminating overflow or excess empty space
OutlineTextPerFrame.jsxConverts text to outlines keeping each frame as a separate groupClean text-to-path conversion preserving organisation
AddTextPrefix.jsxAdds prefix/suffix or auto-numbering to text framesBatch numbering, bullet points, wrapping text
AlignTextFramesToBaseline.jsxAligns text frames by their visual baselinePrecise text alignment across different font sizes
TextStatistics.jsxCharacter, word, line, paragraph counts with type breakdownContent auditing and copywriting metrics
ReplaceFont.jsxReplace one font with another throughout the documentFont substitution for brand updates
SetLineSpacing.jsxSet leading with absolute, auto, or relative-to-font modesUniform line spacing across text frames
ExtractTextToFile.jsxExports all document text to a file, organised by layerContent extraction for translation or review
HighlightOverflowText.jsxFinds overflowing area text and marks them with red outlinesCatching hidden overflow text before print

Path & Shape

15 scripts

Scripts for path manipulation, shape creation, and geometric transformations.

ScriptDescriptionUse Case
CloseOpenPaths.jsxCloses open paths with straight or smooth curve optionsPreparing paths for fill, print, or CNC cutting
RemoveRedundantPoints.jsxRemoves anchor points that don't affect the path shapeSimplifying paths imported from tracing or CAD
SplitPathAtAnchors.jsxSplits paths into individual segments at each anchorBreaking complex paths for individual editing
RoundCorners.jsxAdds rounded corners to any angular pathCreating rounded rectangles from any polygon
MirrorPath.jsxCreates mirrored copies across horizontal/vertical axisSymmetrical design creation
OffsetPathSimple.jsxCreates offset copies at specified distancesMaking concentric shapes, border effects
RandomizeAnchors.jsxRandomly displaces anchor points for organic effectsCreating hand-drawn, natural-looking shapes
AddPointsToPath.jsxSubdivides path segments with bezier-accurate interpolationAdding detail to smooth curves
PathLengthInfo.jsxCalculates path length in points, inches, and millimetresMeasuring paths for cutting, engraving, or pricing
CreateGrid.jsxCreates customisable grids with gutters and marginsLayout grids, game boards, technical drawings
ConvertStrokeToFill.jsxOutlines strokes using Illustrator's built-in commandPreparing strokes for print or laser cutting
DuplicateAlongPath.jsxPlaces copies of an object at equal intervals along a pathPattern creation, decorative borders, animations
ResizeToExactDimensions.jsxResize to exact width/height in pt, in, mm, or pxPrecise sizing for production specifications
CreateSpiralPath.jsxCreates Archimedean or logarithmic spiralsDecorative elements, generative design
CreateWavyLine.jsxCreates sine, triangle, or square wave patternsDecorative borders, sound wave graphics
FlattenTransparency.jsxFlattens transparency for print-ready outputPrint preparation for older RIP workflows

Colour Management

11 scripts

Scripts for colour conversion, swatch management, and colour manipulation.

ScriptDescriptionUse Case
ConvertRGBtoCMYK.jsxConverts RGB colours to CMYK equivalentsPreparing screen designs for print
ConvertCMYKtoRGB.jsxConverts CMYK colours to RGB equivalentsAdapting print files for digital use
ConvertToGrayscale.jsxPerceptual luminance-based grayscale conversionCreating grayscale versions, accessibility testing
SwapFillAndStroke.jsxSwaps fill and stroke colours on selected objectsQuick appearance toggling
RandomizeFillColors.jsxApplies random colours with HSB range constraintsPattern design, data visualisation, generative art
CreateColorHarmony.jsxGenerates complementary, triadic, analogous palettesColour palette generation from a base colour
AdjustBrightness.jsxLightens or darkens colours by percentageCreating hover states, tint variations
ColorReport.jsxLists all colours with values, types, and usage countsColour auditing, brand compliance checking
RemoveUnusedSwatches.jsxRemoves swatches not used by any objectCleaning up swatch panel clutter
ApplyColorFromSwatch.jsxApplies a swatch to selected objects with searchable listQuick colour application from the palette
SetOpacityByDialog.jsxSet opacity with absolute, relative, or random modesBatch opacity adjustments for layered effects

Layer Management

10 scripts

Scripts for organising, merging, and managing layers.

ScriptDescriptionUse Case
MergeSelectedLayers.jsxMerges multiple layers into one via a dialogConsolidating layers before handoff
DeleteEmptyLayers.jsxRemoves all empty layers and sublayersCleaning up layer panel clutter
DuplicateToAllArtboards.jsxCopies objects to same position on all artboardsPlacing headers, logos, page numbers across artboards
LockAllExceptActive.jsxLocks all layers except the active oneIsolating work on a single layer
UnlockAllLayers.jsxUnlocks all layers and optionally all objectsQuick access to all elements for editing
RenameLayersByContent.jsxAuto-names layers based on their contentOrganising unnamed "Layer 1, 2, 3..." layers
MoveSelectionToNewLayer.jsxMoves selection to a new named layerOrganising objects into proper layers
ToggleLayerVisibility.jsxShow all, hide all, solo, toggle, or invert visibilityQuick layer visibility management
FlattenAllLayers.jsxMerges all layers into onePre-export simplification
CreateLayerFromSelection.jsxCreates one layer per object or one for all selectedAuto-organising objects into layers

Selection Utilities

10 scripts

Scripts for advanced selection filtering and management.

ScriptDescriptionUse Case
SelectByFillColor.jsxSelects all objects matching a reference fill colourBatch editing same-coloured elements
SelectByStrokeWeight.jsxSelects objects with a specific stroke weightFinding and modifying strokes of a certain weight
SelectBySize.jsxSelects objects by width, height, or area thresholdsFinding objects that don't meet size requirements
SelectByObjectType.jsxSelects all objects of a chosen type (path, text, etc.)Batch operations on specific object types
SelectSameAppearance.jsxSelects objects matching fill, stroke, and weightFinding visually identical elements
InvertSelection.jsxInverts current selectionSelecting "everything except these"
SelectOnActiveArtboard.jsxSelects objects within the active artboard boundsArtboard-specific batch operations
SelectOpenPaths.jsxSelects all unclosed paths in the documentPre-flight check for paths needing closure
SelectSmallObjects.jsxFinds objects below a size threshold, offers deleteRemoving tiny artefacts and debris
SelectStrayPoints.jsxFinds single-point paths, offers deleteCleaning up invisible stray anchor points

Export & Batch Processing

9 scripts

Scripts for exporting to various formats and batch operations.

ScriptDescriptionUse Case
ExportArtboardsAsPNG.jsxExports each artboard as PNG with resolution and @2x/@3xMulti-resolution asset generation
ExportArtboardsAsSVG.jsxExports artboards as SVG with font and precision optionsWeb icon and asset export
ExportArtboardsAsPDF.jsxExports as separate PDFs or single multi-page PDFPrint-ready PDF generation
BatchExportOpenDocs.jsxExports all open documents to PNG, JPG, SVG, or PDFProcessing multiple files at once
ExportSelectionAsPNG.jsxExports only selected objects as a cropped PNGQuick asset extraction from a larger composition
ExportLayersAsFiles.jsxExports each layer as a separate fileLayer-based asset pipelines
ExportForWeb.jsxOne-click web export: PNG @1x/@2x/@3x + SVG in subfoldersComplete web asset package generation
SaveAsEPS.jsxSave as EPS with version and preview configurationLegacy format compatibility for print
ExportColorSwatches.jsxExports swatches as CSV, JSON, CSS variables, or plain textColour handoff to developers or documentation

Document Setup

8 scripts

Scripts for artboard management, guides, and document configuration.

ScriptDescriptionUse Case
CreateArtboardsFromSelection.jsxCreates artboards sized to each selected objectAuto-generating artboards around existing art
FitArtboardToArt.jsxResizes artboard to fit artwork with optional paddingTrimming artboards to content
DocumentInfo.jsxComprehensive doc info: dimensions, counts, fonts, linksPre-flight documentation and auditing
AddGuidesFromSelection.jsxCreates guides at selection edges and/or centresAlignment reference from existing elements
RenameArtboards.jsxBatch rename artboards with patterns or custom listsOrganising artboards for export naming
ResizeArtboard.jsxResize to exact dimensions or standard presetsQuick artboard resizing (A4, Letter, web sizes)
AddBleedMarks.jsxAdds crop, bleed, and centre marks for printManual print mark generation
SetupColumnGrid.jsxCreates column grid as guides or coloured rectanglesLayout design with Bootstrap-style grids

Effects & Appearance

8 scripts

Scripts for visual effects and creative transformations.

ScriptDescriptionUse Case
CreateDropShadow.jsxAdds configurable drop shadow via duplicated offset shapeQuick shadow effects without live effects
CreateLongShadow.jsxCreates trendy flat-design long shadow effectMaterial design, flat illustration shadows
GradientFillAcrossObjects.jsxApplies colour gradient across multiple objectsColour transitions in infographics, charts
CreateDottedLine.jsxPlaces circles/squares/diamonds along a pathDecorative borders, stitching effects
CreateOutlineEffect.jsxConcentric outlines with fading opacity for glow/haloNeon glow, highlight effects
RandomDistribute.jsxRandomly positions objects with optional rotation/scaleScattered layouts, confetti, natural patterns

Cleanup & Optimisation

10 scripts

Scripts for document cleanup, optimisation, and maintenance.

ScriptDescriptionUse Case
RemoveHiddenObjects.jsxFinds and removes all hidden objectsReducing file size, removing legacy hidden art
RemoveUnusedSymbols.jsxRemoves symbol definitions not placed in the documentCleaning up Symbols panel
RemoveEmptyGroups.jsxRecursively removes empty group containersStructural cleanup after editing
RemoveAllGuides.jsxRemoves all guide objects and ruler guidesFresh start on guide placement
UngroupAll.jsxRecursively ungroups all groups in selection or documentFlattening structure for export or editing
CleanupDocument.jsxAll-in-one: stray points, empty groups, hidden items, and moreComprehensive pre-delivery cleanup
ReplaceLinkedWithEmbedded.jsxEmbeds all linked images into the documentPackaging files without missing links
ResetTransformations.jsxResets position transformations on selected objectsStarting fresh on object positioning
FindReplaceObjectNames.jsxFind/replace text in object names (Layers panel)Bulk renaming for SVG export IDs
ReducePathPoints.jsxSimplifies paths by reducing anchor point countOptimising complex traced or imported paths

Utility

2 scripts

General-purpose productivity scripts.

ScriptDescriptionUse Case
BatchRenameObjects.jsxSequential renaming with prefix, numbering, and sortingSVG element ID naming, organised layer names
DistributeSpacingEvenly.jsxEqual gaps between objects (not equal centre spacing)Precise layout spacing that accounts for object sizes

Common Workflows

Combine scripts for end-to-end production workflows.

Print Preparation

  1. Run CleanupDocument.jsx to remove stray points, empty groups, hidden objects
  2. Run ConvertRGBtoCMYK.jsx to convert colours for print
  3. Run ReplaceLinkedWithEmbedded.jsx to embed all images
  4. Run ListAllFontsUsed.jsx to audit fonts
  5. Run HighlightOverflowText.jsx to catch overflow text
  6. Run AddBleedMarks.jsx for crop marks
  7. Run ExportArtboardsAsPDF.jsx for final output

Web Asset Generation

  1. Run ExportForWeb.jsx for automatic PNG @1x/@2x/@3x + SVG export
  2. Run ExportColorSwatches.jsx with CSS output for developer handoff
  3. Run BatchRenameObjects.jsx to set meaningful SVG element IDs

Brand Guidelines

  1. Run ColorReport.jsx to audit all colours used
  2. Run CreateColorHarmony.jsx to generate palette variations
  3. Run ExportColorSwatches.jsx in JSON format for digital style guides
  4. Run ListAllFontsUsed.jsx to document typography

File Cleanup

  1. Run SelectStrayPoints.jsx and delete
  2. Run RemoveEmptyGroups.jsx
  3. Run RemoveHiddenObjects.jsx
  4. Run RemoveUnusedSwatches.jsx
  5. Run RemoveUnusedSymbols.jsx
  6. Run DeleteEmptyLayers.jsx

Compatibility

Tested and supported across all modern Illustrator versions on Mac and Windows.

CS6Full support
CC 2014Full support
CC 2015Full support
CC 2017Full support
CC 2018Full support
CC 2019Full support
CC 2020Full support
CC 2021Full support
CC 2022Full support
CC 2023Full support
CC 2024Full support
CC 2025Full support

Platform: Mac OS X 10.12+ / Windows 10/11

Technical Notes

  • Scripts use ExtendScript (.jsx), Adobe's JavaScript implementation for Creative Suite/Cloud applications.
  • All scripts are wrapped in IIFEs (function() { ... })() to avoid polluting the global scope.
  • Colour conversions use standard mathematical formulas (ITU-R BT.709 for luminance).
  • Path calculations use cubic Bezier interpolation for accurate curve measurements.
  • File I/O operations use File and Folder objects from ExtendScript's cross-platform API.

Download the Collection

Get all 100 Illustrator scripts in a single download. Free to use, modify, and distribute.

Get Adobe Creative Cloud →