A Google software engineer was left “spattered with blood” Tuesday after he viciously beat his wife to death inside their California home, prosecutors said.

Liren Chen, 27, was allegedly found in a catatonic state with a swollen and bruised hand and his wife’s pulverized body nearby.

The savage crime unfolded in Santa Clara, a ritzy city in the heart of Silicon Valley and just miles from Google’s headquarters.

Police were called around 11 a.m. to conduct a welfare check at his home by a concerned friend who said neither Chen nor his wife would answer their phones or the door, according to the Santa Clara District Attorney.

The friend, however, could see Chen inside the home “motionless on his knees, had his hands in the air and was staring blankly.”