The 36-year-old’s participation at Flushing Meadows looked to be in doubt after he struggled with a back problem when losing to Alexander Zverev in Montreal two weeks ago, but the rest appears to have worked.
Federer has trained well in New York in the lead up and says he is feeling good ahead of the tournament.
“Two weeks after the finals [in Montreal] is a long time, so because you’ve got two weeks you can take your time,” said the Swiss.
“So the first week was really just trying to feel better, get better, get back on the court at some stage. I have been on the practice courts since last week. There you have it.
“I have been playing sets the last few days, and I’m really happy how I’m feeling.”
If Federer and Rafael Nadal were to make it through to the semi-finals it would be their first ever meeting at the US Open.
“I’d be happy to play him here,” said Federer. “We never played in New York, so I think that would be fun for everybody involved. I don’t think we are both thinking that far ahead.”