Born in Sant Jaume dels Domenys, Tarragona, Catalonia, Hernández joined FC Barcelona's La Masia in 2012, aged seven.
[2] On 14 July 2023, Hernández left Barça and signed for Villarreal CF.
[3][4] Initially a member of the Juvenil squad, he made his senior debut with the C-team on 17 March 2024, starting and scoring the opener in a 3–1 Tercera Federación home win over CD Utiel.
[5] Hernández made his professional debut with the reserves on 2 June 2024, coming on as a late substitute for Dani Requena in a 1–0 Segunda División home win over Racing de Santander, as his side was already relegated from Segunda División.
[6] On 30 August, he was loaned to Elche CF in the second division, for one year.