You cannot directly convert an EXE file to a DMG file online because they are built for entirely different operating system architectures. An EXE file contains compiled binary code designed strictly for the Windows Operating System (x86/x64). A DMG file is an Apple Disk Image used by macOS to distribute software.
These tools do make the EXE run on a Mac. They unpack the internal resources. convert exe to dmg online full