How to bake/render wireframes on texture?

So I’m using gimp to create textures for my blender model. I’d like to create a texture in blender that shows the uvmapped wireframes so I can tell which part of the texture is used for which part. Kind of like you can bake the ambient occlusion on the texture … so can you bake just the wireframe? To make an image like this:
With just black background. Atm I’m just taking screenshots manually and then combining them manually in gimp into single image. Surely blender can output the wireframes directly?

Export the UV map to an image file

In the export settings you can set the fill opacity so you can show the material colour that you have on your object

Oh, wow thanks.

Is there a way to export the UV Layout for multiple UDIM Tiles? It only exports the first tile. :confused: