Soil salinization caused by natural and anthropogenic factors is an important environmental hazard especially in arid and semi-arid regions of the world. Accumulation of salts in the soil is a major threat to crop production and global agriculture; therefore, rapid and precise detection of salt-affected lands is highly critical for preserving soil sustainability and supporting food production. Advancement in remote sensing techniques and machine-learning algorithms has started to contribute to fast and large-scale monitoring and mapping of soil salinization throughout the world. This paper aims to analyze the performance of three different machine-learning algorithms to map soil salinity using Landsat-8 OLI, Sentinel-2A satellite images, and ground-based electrical conductivity (EC) measurements with the aid of Google Earth Engine (GEE) platform. Classification and regression trees (CART), random forest (RF), and support vector regression (SVR) methods are implemented to create a correlation between ground measurements and satellite-derived environmental variables or spectral indices. After selecting the optimum five variables including wetness band, three soil salinity indices, and one vegetation index, soil salinity maps are generated in three machine-learning algorithms. The output soil salinity map in RF algorithm demonstrated the most reliable spatial distribution of various soil salinity classes in the selected study area. Despite CART provided slightly better prediction of soil salinity with R-squared (R2) of 0.98 for Sentinel-2A data, and 0.96 for Landsat-8 OLI data in comparison with accuracy results of RF technique with R2 of 0.96 for Sentinel-2A data and 0.94 for Landsat-8 OLI data, the output map of RF model estimated more reliable salinity levels in salt crusts, agricultural lands, drainage areas, and swamps. The corresponding result highly matched with visual interpretation. Soil salinity maps derived from SVR algorithms by using various combinations o