The invention relates to a hydraulic type aligning device inside a pipeline, which is used for the welding construction of a long-distance oil and gas transporting pipeline and mainly comprises a shell, a hydraulic power station, a sliding mechanism, an expanding mechanism, a running mechanism and a straightening mechanism. Furthermore, the hydraulic type aligning device inside a pipeline is characterized in that a jacket of a hydraulic station is internally fixed with the hydraulic power station, a jacket of a liquid tank is internally provided with a hydraulic cylinder, a main shaft is sleeved with a rear sliding sleeve and a front sliding sleeve, and the other end of a traction frame is fixed to the end part of the rear sliding sleeve. Furthermore, the rear sliding sleeve is driven by the hydraulic cylinder to reciprocate on the main shaft, each sliding sleeve adopts an articulated axle fixed with two main top plates and a parallel top plate, an isoceles triangle is formed by the two main top plates, and the parallel top plate is fixed with two support pillars and a jacking. The invention can realize pipe opening alignment, stable and reliable positioning, large pushing force and pipe opening shaping, and can slightly adjust the lifting height and enhance the centric precision of fitted up pipe openings. In addition, the invention has light weight, low price and simple structure.