The invention discloses a pipeline preparation device based on building electrical firefighting. The device comprises a fixed rack; a lifting door is installed on one side of the fixed rack; a feedingmechanism is arranged inside the fixed rack; the feeding mechanism comprises a sliding rod, a sliding plate, a connecting rod, a threaded rod, a threaded motor, a rotary disc, a sliding block, a lifting hydraulic rod, a connecting plate, an S-shaped rotating shaft, a rotating shaft motor, and an antiskid sleeve. According to the feeding mechanism, through the sliding rod, the sliding plate, the connecting plate, the threaded rod, the threaded motor, the rotary disc, the sliding block and the lifting hydraulic sleeve, a worker can conveniently move the position of the connecting plate toward multiple directions, and through the S-shaped rotating shaft, the rotating shaft motor and the antiskid sleeve, the worker can realize convenient clamping and transportation of a pipeline, so manual transportation of the pipeline by the worker is avoided, the difficulty of pipeline transportation of the worker is lowered, and therefore working efficiency of the worker in anti-corrosion manufacturing of the pipeline is improved.