Johann Ernst Hartmann (December 24, 1726, Głogów, Bohemian Crown – October 21, 1793, Copenhagen) was a Danish composer. Two of his sons were composers, Johan Ernst Hartmann and August Wilhelm Hartmann. The latter's sons included Johan Peter Emilius Hartmann.