In order to meet the needs of target detection in shallow water with concealed and low energy consumption platform, the Bayesian estimation theory was applied to underwater acoustic location. The underwater acoustic location model was established based on probability density function as the description of sound source state, so as to overcome the problems of unstable shallow water environment and mismatching of sound field model. Histogram filtering method is used to solve the integral solution in the process of posterior probability estimation of sound source state. The hierarchical grid histogram filtering method is proposed for the first time, which effectively improves the efficiency of histogram filtering iterative algorithm. The measured data and simulation results of SWelleX-96 show that the depth positioning accuracy can reach 35 m and the distance positioning accuracy can reach 0.69 km within the range of 200 m deep and 10 km long in shallow water environment, and the efficiency of the algorithm can be improved by N1/2 times.