gz to rar conversion is actually related to repacking of compressed content between GZIP and RAR formats. Both formats should have decent support nowadays, so it should not be hard to find a tool that can be used to repack gz to rar or vice versa.
Updated: July 28, 2023