First off, it's so great that you're thinking of other animals in need! You'll have to check with your local shelter as some will accept pet toys and others will not.
If you are planning to donate, don't give any heavily used, ripped, or otherwise ruined toys.