Which emulators are you trying? I recommend SameBoy for GB games.
I tried but it didn’t work because the file is .rar not .zip or .gb or .gbc
A .rar file is a compressed format, like a .zip. You'll need to unpack it; 7zip and WinRAR are popular methods. Once you do that you should have the .gb :)