The SPFL clubs competing in Europe in 2016/17 discovered their opponents when the draws were made at UEFA HQ in Nyon on Monday.
Celtic have been paired with Flora Tallinn (Estonia) or Lincoln Red Imps (Gibraltar) in the second qualifying round of the Champions League on July 12/13 and 19/20.
Ladbrokes Premiership runners-up Aberdeen will face Fola Esch of Luxembourg in qualifying round one of the Europa League on June 30 and July 7, with a tie against Ventspils (Latvia) or Vikingur (Faroes) awaiting in round two should they progress.
Hearts will meet Infonet of Estonia in their Europa League opener and will then play Siroki Brijeg (Bosnia) or Birkirkara (Malta) if they reach the second round.
Scottish Cup winners Hibernian enter the Europa League in the second qualifying round and will take on Valur Reykjavik or Brondby on July 14 and 21.