A bracket device includes a bracket and a fastening member. The fastening member is pivoted to the bracket by a shaft member. The bracket includes a first structure and the fastening member includes a second structure. When the fastening member is located at a position, the first structure is in cooperation with the second structure, so as to prevent the fastening member from moving along an axis direction of the shaft member.