Pictures of the sweet visit were posted by a Twitter account for a local children's hospital show.
"Captain Jack Sparrow hits the Juiced set at The Lady Cilento Children's Hospital! Legend!!" the account wrote next to a picture of Depp in full garb.
The kids couldn't look happier to see the actor.
A local station in Brisbane, Australia also posted photos. One from Nine News show Depp, 52, embracing a child at the hospital.
Here's the rest:
He even took selfies with the kids. Classy move from the Oscar nominee.
"He was going from room to room seeing all the kids who couldn't get out of bed," Rachel told the outlet. "We waited out of the front of one of the rooms, and he came up to us and had a really good chat to Max."
Max's mother said "It was really beautiful. Everyone kept on trying to move him on, but he kept on coming back" to be with the kids.