Yes, you can file for divorce online in Ontario.  

Ontario allows couples to file for divorce online, particularly for uncontested divorces. You can complete the required forms, submit them electronically, and avoid the need for physical court visits.