I have a licence from another province, can I exchange it for an Ontario licence online?

No, because of the testing required you can only exchange your licence at a DriveTest Centre.