Hi adwivedi. Depending on wich QuickBooks Desktop product you are using the instructions may be a bit different. So check out our article on Moving From Desktop to Online.
The steps are simple, just product-specific. So just locate the section specific to whichever version of QBDT you own to get step-by-step instructions on how to perform the process.
Let me know if you need anything else. I'm always happy to help.