Export iPhone HEVC videos to computer as H.264

How to transfer iPhone H.265/HEVC videos to computer and save them as H.264/AVC videos on PC or Mac?