You would be able to apply for Medicare online when  you are at least 64 years and 9 months old.
What is the initial enrollment period?
Your initial enrollment period begins three months before your 65th birthday, includes the month you turn 65 and ends three months after your birthday.
Can  you please explain what happens to my application after I apply for benefits?