We present the collection of eclipsing binaries in the Large and Small Magellanic Clouds, based on the OGLE survey. It contains 48605 systems, 40204 belonging to the LMC and 8401 to the SMC. Out of the total number of the presented binaries, 16374 are the new ones. We present the time-series photometry obtained for the selected objects during the fourth phase of the OGLE project. The catalog has been created using a two step machine learning procedure based on the Random Forest algorithm.