On July 2, 2006, the Phillies signed Hernández as an undrafted amateur free agent, at the age of 16. He made his major league debut during the 2013 season. In 2016, he led the major leagues in bunt hits, and led the National League (NL) in infield hits and triples. In 2018, he tied for the major league lead in bunt hits.