A protocol for the fabrication of magnetic micro- and nanostructures with spin configurations forming magnetic vortices suitable for transmission electron microscopy (TEM) and magnetic transmission x-ray microscopy (MTXM) studies is presented.