Unmanned aerial vehicles (UAVs) provide an effective tool for fine-scale land surface temperature (LST) mapping, but satellite-based algorithms are unsuitable due to their much lower flight altitudes. Currently, few studies have focused on UAV-based LST retrieval methods, and most either neglect atmospheric influences or rely on atmospheric radiative transfer simulations using local atmospheric profiles, limiting general applicability. This study develops a generalized UAV-based LST retrieval (GULR) algorithm for UAV thermal cameras integrating the widely used FLIR Tau 2 thermal core. The relationships between atmospheric transmittance, upwelling and downwelling atmospheric radiance with near-surface meteorological parameters and UAV height were analyzed using simulations based on TIGR profiles. Generalized empirical equations were then developed to estimate these atmospheric parameters from near-surface air temperature, humidity, and UAV height. Correction equations were also developed to minimize uncertainties in the conversion between temperature and radiance induced by the equivalent wavelength of the broad UAV thermal band. Additionally, band-specific land surface emissivity for six major land cover types was provided to facilitate calculation. Subsequently, LST can be retrieved by removing atmosphere and emissivity influences. The algorithm was validated using both simulated datasets and field observations, achieving mean absolute errors (MAEs) of 0.33 K and 1.49 K, respectively. Sensitivity analysis demonstrated the robustness against noise in near-surface meteorological variables and emissivity. This study proposes a generalized, easy-to-use, and accurate UAV-based LST retrieval algorithm, offering valuable technical support for high-resolution thermal environment monitoring.