The Zoglin is the undead form of a Hoglin. It is hostile, has 40 health points and is immune to fire damage. Adults and babies both attack at close range.
A standard Survival encounter begins when a Hoglin is taken from the Nether into the Overworld. A Nether portal can transport the Hoglin, and after about 15 seconds in the Overworld it converts into a Zoglin. The conversion happens to the Hoglin after it arrives.
A Zoglin attacks players and many other creatures. Its ordinary target selection excludes Creepers and other Zoglins. Warped fungus does not repel it, and Zoglins cannot be fed or bred.
Baby Zoglins have a smaller hitbox and a weaker attack than adults. In Java Edition, an adult can fling its target with a hit, while a baby strikes more often and does not deliver the adult's toss.
Java Edition 26.3 gives adults a 40-tick melee interval and babies a 15-tick interval. Java's standard death-loot check excludes baby Zoglins. The Bedrock Edition 26.62 definition assigns its rotten flesh table to the base entity shared by both ages.