Document Cleaner
✦ Available exclusively on Patreon for Pro supporters.
Script for Adobe Illustrator
ㅤ
Description
Document Cleaner is a powerful Adobe Illustrator script that provides 27 essential cleaning and optimization functions to help you maintain clean, efficient, and production-ready artwork. With an intuitive searchable interface, you can quickly access the exact tool you need to streamline your workflow and prepare documents for export, sharing, or archiving.
Ideal for designers preparing files for print, export, or handoff, this script ensures your projects are clutter-free and professional.
ㅤ
Features
- 27 Specialized Functions: Comprehensive document optimization including clearing empty elements, removing stray points, and more.
- Searchable Interface: Type-ahead search allows quick access to the exact function you need.
- Confirmation Dialogs: Detailed previews ensure you know exactly what will be modified before executing operations.
- Progress Tracking: Built-in progress indicators keep you informed during long-running tasks.
- Help System: Detailed built-in descriptions for each function provide immediate guidance and tips.
ㅤ
Installation
1. Download the Document Cleaner.jsx script file
2. Place it 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. Go to File > Scripts > Document Cleaner.
5. The dialog window will appear with the following options:
ㅤ

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
- Browse or search for the desired function.
- Select the function from the list.
- Click "?" button to see a brief description of the function.
- Click "OK" to execute the function (or just double-click).
- Review the confirmation/result dialog that appears.
ㅤ
Available Cleaning Functions
Here's a breakdown of the main functions included in the Document Cleaner script:
ㅤ
Layer & Artboard Management
Keep your document structure tidy by clearing out unused organizational elements.
- Delete Empty Layers: Removes any layers or sublayers that do not contain objects.
- Delete Empty Artboards: Identifies and removes artboards that contain no artwork.
- Delete Locked Layers: Removes all currently locked layers (use with caution).
- Delete Hidden Layers: Removes all currently hidden layers.
- Make All Layers Visible: Unhides all hidden layers and sublayers.
- Make All Objects Visible: Reveals all individually hidden objects (page items) throughout the document.
- Unlock All Layers: Unlocks all locked layers, making their contents editable.
- Unlock All Objects: Unlocks all individually locked objects (page items) throughout the document.
ㅤ
ㅤ
Symbol & Link Operations
Manage external dependencies and symbol instances for sharing or editing.
- Break All Symbol Links: Converts all symbol instances into regular, independently editable artwork.
- Delete All Symbols: Removes all symbol definitions while expanding instances in the artwork.
- Delete Unused Symbols: Removes symbol definitions from the panel that are not actively used in the document.
- Embed All Linked Files: Embeds externally linked images directly into the document.
- Delete All Missing Links: Safely removes placed items that reference files which can no longer be found.
ㅤ
ㅤ
Additional Organization Tools
Various utilities to optimize text, groups, colors, and more.
- Delete Empty Text Frames: Cleans up leftover text boxes containing no characters or only whitespace.
- Ungroup All Groups: Recursively ungroups everything in the document while preserving stacking order.
- Ungroup Unnecessary Groups: Intelligently removes groups that only contain a single object.
- Delete All Swatches: Removes all color swatches from the Swatches panel to clean up your palette.
- Delete All Guides: Automatically clears all guide lines from the document.
- Reset Raster Image Transformations: Restores placed images to their original unscaled dimensions and rotation.
ㅤ
Additional Notes:
- Click the ⏼ icon at the bottom right side of the panel to open the script’s user guide online.
- Resize the dialog window to show more options at once.
- Save your document before running cleaning operations.
ㅤ
ㅤ
☻ Wrap-Up
The Document Cleaner script transforms tedious manual cleanup into a seamless, one-click process, saving time and ensuring polished Illustrator documents.
Whether tidying up before export, optimizing file size, or streamlining collaboration, this tool keeps your workflow efficient and error-free. Harness its power to focus on creativity—not clutter.
ㅤ
ㅤ
1 comment
Justo lo que andaba buscando…Gracias por la aportacion