How can i save Tiles on the tilemap to a GameObject?

Hi am working with unity 2D and i just made a bunch of cool tiles on the tile-map but i would like to save them to a game-object so i can spawn them using code!

125212-ca1234pture.png

not sure what the tile map is, but maybe right click in your assets create prefab then drag the object onto the prefab