Perth actor and singer Johnny Ruffo went into a Sydney hospital on Sunday after suffering what he thought was a bad migraine.

But the Balcatta-raised former Home and Away star was rushed into emergency surgery to have a brain tumour removed.

“On Sunday I went into hospital with a migraine,” Ruffo said today.

“I had to have emergency surgery to have a brain tumour removed.

“I am on the mend and feeling positive. Keep me in your thoughts.”

Johnny Ruffo in hospital. Picture: Picture: johnny_ruffo/Instagram

The 29-year-old, who finished third on The X Factor in 2011, took to Instagram today to show him recovering in a hospital bed, with another image highlighting the extraordinary scar running across the top of his forehead.

“Some things in life really put things into perspective, hoping for a positive result, keep me in your thoughts,” he captioned the image.