Texture Utility
Online
Heightmap to Mask Generator
Drop in a heightmap, choose the start and end height range, then export a mask at the original image resolution.
Add a heightmap to create a mask.
Preview
Updating
Original resolution is preserved on export.