Germanium-tin alloys were grown by molecular beam epitaxy and characterized. The tin content ranged from 4-20% atomic percent, lowering the bandgap energy by about 10 meV per percent tin. A sample with 12% tin exhibited a direct bandgap of 0.623 eV at 100K. Heterojunction diodes of p-GeSn/n-Ge showed nearly ideal rectifying characteristics with low turn-on voltage but increasing reverse dark current with higher tin content and temperature, attributed to the decreasing bandgap. The results indicate GeSn alloys have potential for future electronic and optoelectronic devices.