Im trying to save icons out to SVG format, one at a time, but from one document. what i mean is, i have all my icons laid out in one document, and once i am ready to save them, i will move the icon i need to save to the artboard, hide everything else and save to .svg.

The problem is that opening the .svg file reveals that even if the graphic is shown as saved (correct whitespace/square, only one visible icon) -the code in the svg file contains every single element from my AI file (with the added display="none") - How can i make sure that everything that is hidden is not saved? is it even possible? Ofc i can just copy the icon i want to save to a new AI file and save that, but flipping between files and re-aligning icons to a new artbaord is tedious, prone to error and straight up sucks.


  • 2
    One way would be to use one artboard per icon (although illustrator is limited to 99 artboards)
    – tim human
    Commented Jun 30, 2014 at 12:15

3 Answers 3


I copy and paste only the paths I want in the SVG to a newly created art board and save to SVG from there.

I sometimes use the Pathfinder to optimise further after pasting.

Before using Pathfinder, all paths should be fully expanded.


Assuming that you are using Adobe Illustrator versions CS6 or CS5 you can download this script and use it as told in the tutorial:

How to: Export multiple icons to SVG files from Adobe Illustrator

IconFinder is a reliable source so you may not run into any problems.

Let me know if this works for you.


Depends on how you export, but you could export artboards to EPS and then to SVG in a batch. That should get you "clean" files. It's an extra step but both can be automated easily.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.