The invention discloses a portable two-dimensional code scanning device, which includes a scanning gun and a charging base, the charging base includes a charging slot with a charging interface, and the scanning end of the scanning gun includes a scanning head shell and a scanning end. Scanning window, one end of the cable is set in the scanning shell, the other end of the cable is located in the handle belt and connected to the rotating device, the initial position of the rotating device without external force is the seamless connection between the scanning end and the handle belt, The maximum relative displacement between the scanning end and the handle belt is 75 cm, the handle belt is a bendable handle belt, one end is connected to the cable and the connection groove, and the other end is provided with a connection buckle, and the connection buckle matches the connection groove; The inner wall of the charging tank is provided with at least two sets of spring layers, the spring layer includes a connecting plate fixed to the inner wall of the charging tank, one side of the connecting plate is fixed to the inner wall of the charging tank, and the other side is connected to the moving plate through a spring bar, and the spring The number of bars must be at least 2.