The deal includes a buyout clause worth 35 million euros ($45.44 million), the club said on their website (www.fcbarcelona.es).
A product of Barca's youth academy, Catalonia-born Deulofeu has played 35 matches for the B team this season, scoring 18 goals. He has also made four appearances for the first team.
Barca are in the market for another forward after they reclaimed the league title from Real Madrid this season but lost in the semi-finals of the Champions League for a second straight year.
(For more sports news and updates, follow Ahram Online Sports on Twitter at @AO Sports and on Facebook at AhramOnlineSports)