The 27-year-old winger will now undergo a medical with Michael Laudrup's side ahead of his move to the Liberty Stadium.
The 27-year-old winger will now travel to Wales in order to undergo a medical and agree personal terms.
Hernandez, who has been capped four times by Spain, made 30 La Liga appearances for Valencia last season, scoring three goals and providing the same amount of assists.
The midfielder becomes Michael Laudrup's third arrival from La Liga this summer after the signing of Michu from Rayo Vallecano and the loan arrival of Jonathan de Guzman from Villarreal.
"Valencia CF have reached an agreement with the Swansea City for the transfer of Pablo Hernandez, who has traveled to Wales to pass a medical. The club wishes to thank Pablo for his professionalism and involvement throughout his career on our team and we wish him all the luck in his new career," a statement on Valencia's official website read.
Hernandez has been targeted as a replacement for Scott Sinclair, who is likely to secure a move to Manchester City before the close of the transfer window.
Follow GOAL.COM USA on