The German foreign ministry said in a statement here that it "sadly confirms that two German tourists died in the attack" at Hurghada holiday resort, renowned for its scuba diving.
Reports previously said the two women were Ukrainian nationals.
Four other women were injured in yesterday's attack.
The attacker had swum ashore from another beach, according to Egypt's interior ministry.
He has been arrested and is being questioned to ascertain the motive behind the attack.
In January 2016, suspected Islamic State (IS) militants stabbed three foreign tourists at Hurghada resort.
(This story has not been edited by Business Standard staff and is auto-generated from a syndicated feed.)