A pivoting shield assembly for hats is revealed. The pivoting shield assembly includes mounting slots arranged at two sides of a hat, a pivot base mounted to each mounting slot, a first connecting rod and a second connecting rod each of which having one end pivotally connected to the pivot base and the other end pivotally mounted to a shield, and a pathway groove disposed on an inner side of the first connecting rod. The pivot base includes an elastic locking piece which is mounted and moveable in the pathway groove correspondingly. Thereby lifting up and pulling down of the shield are more precise and having different stages. The pivoting shield assembly for hats is practical.