Andy Murray has been seeded eighth for the US Open in New York.
The draw ensured Djokovic, who defeated the Swiss to clinch his second Wimbledon crown last month, can only meet Federer if the two reach the final at Flushing Meadows.
Murray has slipped down the rankings following a disappointing summer that saw his defence of his Wimbledon title ended by Grigor Dimitrov in the quarter-final.
Before that, he suffered a straight-sets thrashing at the hands of Rafael Nadal in their semi-final at Roland Garros.
Nadal's withdrawal from the final Grand Slam of the year due to a wrist injury has allowed Federer to move up from his number three ATP singles ranking.
The draw for the US Open will take place on Thursday ahead of the first set of first round matches on Monday.
Top seed Djokovic has reached the last four finals in New York but last won the title in 2011.
- Sports & Recreation
- Novak Djokovic
- Roger Federer
- Andy Murray
- Grigor Dimitrov
- Rafael Nadal