The invention discloses a device suitable for railway boxcar cargo loading and unloading, and relates to the technical field of railway boxcar cargo loading and unloading equipment. The device comprises a base, a conveying mechanism, a moving mechanism, a rotating mechanism, a lifting mechanism and a grabbing mechanism, wherein supporting plates are arranged on the two sides of the outer wall of the base, and a top plate is arranged at the top ends of the supporting plates. The device is provided with limiting bases, limiting rolling wheels, a fixed base, a first moving motor, a first gear, moving arms, limiting grooves, a connecting plate, a moving rail, a limiting sliding groove, a second transmission gear block, a transmission arm, a first transmission gear block, a moving base, a second gear, a second moving motor, a connecting base, a first rotating motor, a first rotating arm, a second rotating motor, a second rotating arm, a vertical fixed arm, a lifting arm, a first lifting motor, a second lifting motor, a first bevel gear, a second bevel gear, a lifting sliding groove, a threaded rod and a first lifting sliding block, so that front-and-back, left-and-right and up-and-down movement of the device is achieved.