Beware the dive-bombing birds!

Aggressive, snack-obsessed seagulls are wreaking havoc on the Jersey Shore — and posing a legit public safety threat to kids, the mayor of Ocean City warned.

“Some people think it’s funny to feed the gulls and see them swarm. For the health and safety of both animals and humans, this must stop,” Ocean City Mayor Jay Gillian wrote in a letter on the town’s website, urging beach-goers to stop tossing the birds grub.

The cutthroat critters have been swooping down to snatch everything from pizza to popcorn — often straight from kids’ hands as they stroll along the town’s popular boardwalk, according to Gillian and other observers.

The hungry birdbrains have also ruffled the feathers of food vendors, whom Gillian urged to provide “enclosed containers.”

He said he is also working with merchants on other ways to get rid of the flying pizza thieves, by possibly setting up netting and noise deterrents.

“I plead with parents to understand that these scavengers will swoop down and steal food even out of your children’s hands,” Gillian wrote, adding that feeding gulls is “against the law.”