Analysts expected Google to earn $7.85 a share on revenue of $6.55 billion, according to Thomson Reuters.

Analysts said the company benefited from growth in several of its businesses including mobile and online video.

"Google should be viewed as a growth company again this quarter," said Stifel Nicolaus analyst Jordan Rohan. "The combination of mobile search, Android, ad exchange, YouTube, and the core search businesses, they're all doing well. Google is no longer a one-trick pony.''

"The number to focus on is really the GAAP earnings number. Google spent aggressively, hiring just as many people this quarter as they did last quarter.''