Magnets won't harm your headphones in any way. The glue must not damage or leave a residue on hard surfaces and is an adhesive substance under the 3M brand.