A buckle device, comprising: a main body unit, including a housing surrounding and defining an accommodating space, at least one first aperture provided in the housing, at least one slider block arranged in the accommodating space, and at least one first elastic body abutting against the slider block; a latch unit, including a tongue element detachably arranged in the accommodating space and detachably abutting against the slider block, and at least one tongue opening provided on the tongue element; and a fastening unit, including at least one bolt body passing through the first aperture, and at least one second elastic body abutting against the bolt body; wherein when the tongue element is separated from the slider block, the slider block is pushed by the first elastic body, so that the bolt body is pushed against by the slider block, and the bolt body is prevented from entering the accommodating space; wherein, when the tongue element is in contact with the slider block, the slider block is pushed by tongue element, and the bolt body is pushed by the second elastic body to enter the tongue opening, so that the tongue element is securely fastened; characterized in that the buckle device further comprises an electromagnetic unit that includes at least one electromagnetic module disposed in the housing, at least one electromagnetic rod passing through the electromagnetic module, and at least one fourth elastic body abutting against the electromagnetic rod, wherein the electromagnetic rod is shifted between a third position and a fourth position, wherein, when the electromagnetic module is excited, the electromagnetic rod is located at the third position, so that the electromagnetic rod is spaced apart from the bolt body, and wherein, when the bolt body enters the accommodating space and the electromagnetic module is not excited, the electromagnetic rod is pushed by the fourth elastic body to the fourth position, and the electromagnetic rod interferes with the bolt body to prevent the bolt body from leaving the accommodating space. a main body unit, including a housing surrounding and defining an accommodating space, at least one first aperture provided in the housing, at least one slider block arranged in the accommodating space, and at least one first elastic body abutting against the slider block; a latch unit, including a tongue element detachably arranged in the accommodating space and detachably abutting against the slider block, and at least one tongue opening provided on the tongue element; and a fastening unit, including at least one bolt body passing through the first aperture, and at least one second elastic body abutting against the bolt body; wherein when the tongue element is separated from the slider block, the slider block is pushed by the first elastic body, so that the bolt body is pushed against by the slider block, and the bolt body is prevented from entering the accommodating space; wherein, when the tongue element is in contact with the slider block, the slider block is pushed by tongue element, and the bolt body is pushed by the second elastic body to enter the tongue opening, so that the tongue element is securely fastened; characterized in that the buckle device further comprises an electromagnetic unit that includes at least one electromagnetic module disposed in the housing, at least one electromagnetic rod passing through the electromagnetic module, and at least one fourth elastic body abutting against the electromagnetic rod, wherein the electromagnetic rod is shifted between a third position and a fourth position, wherein, when the electromagnetic module is excited, the electromagnetic rod is located at the third position, so that the electromagnetic rod is spaced apart from the bolt body, and wherein, when the bolt body enters the accommodating space and the electromagnetic module is not excited, the electromagnetic rod is pushed by the fourth elastic body to the fourth position, and the electromagnetic rod interferes with the bolt body to prevent the bolt body from leaving the accommodating space.