Illustrator has an Export For Screens feature that makes exporting to PNG or SVG a bliss, provided that your document is properly set up.
![](http://geeklystrips.com/wp-content/uploads/2022/07/AdobeIllustratorExportArtboards-1024x696.png)
This dialogue window is accessible through File > Export > Export For Screens, and can also be summoned from the Asset Export palette (which can also be used to store and track assets)
![](http://geeklystrips.com/wp-content/uploads/2022/07/AdobeIllustratorExportArtboardsOutput.png)
Important: Artboards with an integer width and height may still output with the wrong dimensions if their x-y coordinates are not integers.